-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support interval counters #32
Comments
Would this be like:
If the service has been up for 1000 seconds? I seem to recall Prometheus preferring unix epoc style as in
|
This is just a counter with an additional gauge that represents the time since the last counter increment. So if you had some sort of cancellable scheduled process, for example, and you wanted to alert if this process didn't complete at least once a day. |
It may make sense to create an |
I recently opened a Stackoverflow Thread and was linked here to share my use case. I'd like to track scheduled jobs in my spring boot application. There are multiple use-cases:
This could be combined to something like (just to get an idea of what I am saying) [
{
"jobname": {
"invocations": [
{
"took": 1,
"start": "2018-08-17T18:00:00.001Z",
"end": "2018-08-17T18:00:00.002Z"
}
]
}
}
] I actually expected that behaviour when using |
@kevcodez How would this be exported to different monitoring backends? I think it could only be consumed by a person (or a tracing backend) Application observability falls into 3 categories: logging, tracing, and metrics. Micrometer is really focused around metrics. I'm not trying to shutdown your request but metrics focuses on aggregation and scalability. What you are describing aligns quite well with tracing. Have you looked into using Zipkin? (We've done some dabbling to create timers that offered tracing at the same time, but that doesn't exist yet see #207 ) |
There was no issues on this topic since 2018. We have tracing, metrics and exemplars that can achieve similar goals. Let's close this issue for now and if there's any interest in this, please add your comment and we'll consider re-opening it. |
A counter that also keeps track of the time since last update (in the form of a gauge).
The text was updated successfully, but these errors were encountered: