Giter VIP home page Giter VIP logo

Comments (5)

SuperQ avatar SuperQ commented on June 11, 2024

Counters which get reset on every publish seem more like increment events. The statsd_exporter should be able to take these events and turn them into "real" Prometheus counters.

You could simulate the lack of updates with Prometheus by using the changes() function.

ALERT MetricNotUpdating
  IF changes(counter_metric_total[10m]) < 1

This would alert if no updates have been published to Prometheus via the cumulative counter in the last 10 minutes.

from statsd_exporter.

tonidas avatar tonidas commented on June 11, 2024

What about gauges @SuperQ? It would be nice if the exporter reset its metrics to prevent old data being considered new.

from statsd_exporter.

SuperQ avatar SuperQ commented on June 11, 2024

It is not possible to expire gauges as the statsd protocol does not have "this is expired" message that I'm aware of. Gauges represent "the last sampled value", so they're always "stale" depending on the timeframe of the value. It is not possible to correctly expire them without an explicit method in the statsd protocol.

from statsd_exporter.

tonidas avatar tonidas commented on June 11, 2024

@SuperQ Thanks for the reply.

I'm considering to reboot the container, periodically, to detect the absence of new metrics, as they are not persisted.

from statsd_exporter.

SuperQ avatar SuperQ commented on June 11, 2024

It would be good to tie the lifecycle of the statsd_exporter to the lifecycle of the app writing to it. This way you get consistency with the metrics exported by the application writing to the exporter.

from statsd_exporter.

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.