Comments (7)
I have added an example of on-demand collection to the readme file that should satisfy the scenario you describe.
from prometheus-net.
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.
Hello !
Do you have any update on this topic, i'm VERY interested 👍
Thanks
from prometheus-net.
Do you have specific topics you would like to see more documented? Details about your needs can be very helpful.
from prometheus-net.
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.
Thank you!!
Now working perfectly 👍
from prometheus-net.
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)
- SignalR active connections meters metric not working.
- After upgrade to .Net 8 Debug window shows a lot of errors HOT 2
- Basic Auth of a Metric Server
- Prometheus.ITimer vs System.Threading.ITimer in .NET8 HOT 2
- Capturing response metrics in HttpResponse.OnStarting
- AddBeforeCollectCallback with ScrapeFailedException not working in .Net8 HOT 1
- Metrics reporting failing after update to v8.x HOT 7
- a2c1c8f99fd61969e09c32a13a23f969b14216c2
- Additional metrics after moving to dotnet 8 & promtheus-net 8 & metrics appear to be deleted by default HOT 2
- Exemplars and trace sampling HOT 3
- "Collection was modified" in CollectAndSerializeAsync() HOT 4
- Am I using the correct library? HOT 4
- Grpc Error metrics
- Allow for changing the default NewExemplarMinInterval
- Adding Application Name label to All Metrics
- .net 6.0 support for 8.2.1
- Access code pre version 2.0.0
- Where to get the updated Grafana dashboard?
- Remove polyfill package
- Prometheus.DiagnosticSourceAdapter missing in .NET Framework build HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus-net.