Git Product home page Git Product logo

Comments (2)

hellt avatar hellt commented on July 17, 2024

Hi @mathieudevos

a couple of quick comments:

  1. Prometheus doesn't stoped measurements in types other than float. This usually means that you have to use a strings processor first to convert your DOWN string to 0 or 1. See an example
  2. As you noted, Prometheus also doesn't quite designed to work with infrequently changed data. The effects of it is that Prometheus reports metrics to go "stale" when no data is presented to be scraped in a given (configurable) interval. This makes it challenging to use Prometheus with ON_CHANGE subscriptions for data that changes rarely.
  3. There is a trick for (2) - I think it is done by setting the expiration to -1 and enabling the cache (https://gnmic.openconfig.net/user_guide/outputs/prometheus_output/#expiration) but Karim might know better

from gnmic.

mathieudevos avatar mathieudevos commented on July 17, 2024

Hey,

Cheers for the quick reply! For the time being I've swapped over to InfluxDB so to avoid the first issue/comment. The other ones were indeed fixed by setting the cache expiration to -1 (I believe -1s didn't work, but -1 does) and setting a cache flush timer.

I think that the final issue we're now having should be fixable if we choose to overwrite the timestamps: we'd want to get the timestamp of when the information is last read, not when it was last changed.
I'll attempt to overwrite the functionality of the timestamps.

Thank you for the quick suggestions, they've been most helpful with obtaining the data I'm looking for.

from gnmic.

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.