Coder Social home page Coder Social logo

Comments (7)

sandersaares avatar sandersaares commented on May 20, 2024 3

I have added an example of on-demand collection to the readme file that should satisfy the scenario you describe.

from prometheus-net.

sandersaares avatar sandersaares commented on May 20, 2024

Absolutely, a pull request to showcase the more advanced scenarios in the readme would be quite welcome if you are still interested!

from prometheus-net.

NikokoFR avatar NikokoFR commented on May 20, 2024

Hello !
Do you have any update on this topic, i'm VERY interested 👍

Thanks

from prometheus-net.

sandersaares avatar sandersaares commented on May 20, 2024

Do you have specific topics you would like to see more documented? Details about your needs can be very helpful.

from prometheus-net.

NikokoFR avatar NikokoFR commented on May 20, 2024

In Prometheus documentation we can read

"Metrics should only be pulled from the application when Prometheus scrapes them, exporters should not perform scrapes based on their own timers. That is, all scrapes should be synchronous.
Accordingly, you should not set timestamps on the metrics you expose, let Prometheus take care of that. If you think you need timestamps, then you probably need the Pushgateway instead.
If a metric is particularly expensive to retrieve, i.e. takes more than a minute, it is acceptable to cache it. This should be noted in the HELP string.
The default scrape timeout for Prometheus is 10 seconds. If your exporter can be expected to exceed this, you should explicitly call this out in your user documentation
"

According to this, I'd like to avoid refreshing my metrics every n seconds. Instead, i'd like to make collection append only when Prometheus comes to retreive them. (with a http event or something similar)

Is there a sample/documentation explaining how to use the Metric Server in that way?

from prometheus-net.

NikokoFR avatar NikokoFR commented on May 20, 2024

Thank you!!

Now working perfectly 👍

from prometheus-net.

sandersaares avatar sandersaares commented on May 20, 2024

A fair bit of documentation has been added with v2.0. I will close this issue as there do not appear to be obvious things remaining to document. If anyone has thoughts about what to document, feel free to open a pull request or issue or just comment here.

from prometheus-net.

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.