Giter VIP home page Giter VIP logo

Comments (5)

arnej27959 avatar arnej27959 commented on April 28, 2024

you don't need any special vespa support for this, as long as you sample the vespa metrics every minute and insert it into prometheus you can do the averaging there (just use the standard prometheus sum/count expression from the prometheus documentation).

note that this is exactly how yahoo's internal metrics monitoring / graphing system does it also, so this is the use case that current vespa setup is intended for, and should work very well.

from vespa.

mnagaya avatar mnagaya commented on April 28, 2024

I think it works fine when LAST metrics is supported.However, some vespa metrics do not have LAST metrics but only RATE metrics. For example search_connections does not support it.

Can we add SUM metrics to they?

from vespa.

arnej27959 avatar arnej27959 commented on April 28, 2024

can't you do the sum of averages? from the prometheus docs it looks like you want to use their 'summaries' concept to do the summing for you:
https://prometheus.io/docs/practices/histograms/

you shouldn't do summing or averaging of the LAST metric, that will sometimes yield incorrect results, since it will repeat the last value seen when there's no new measurements in a period.

from vespa.

mnagaya avatar mnagaya commented on April 28, 2024

rate() can calculates the per-second average rate of increase of the time series:
https://prometheus.io/docs/prometheus/latest/querying/functions/#rate()

from vespa.

mnagaya avatar mnagaya commented on April 28, 2024

@arnej27959 It seems I misunderstood the specification of metrics API of Vespa. Sorry for confusion. Now I understood the correct specification, and I will try to calculate what I need using "rate" and "average" metrics currently available.

Thank you for your explanation.

from vespa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.