Comments (6)
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.
from micrometer.
Would this be like:
uptime 1000.0
If the service has been up for 1000 seconds?
I seem to recall Prometheus preferring unix epoc style as in
process_start_time
(https://github.com/prometheus/client_java/blob/master/simpleclient_hotspot/src/main/java/io/prometheus/client/hotspot/StandardExports.java#L80)
from micrometer.
It may make sense to create an IntervalTimer
as well to measure gaps between events.
from micrometer.
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:
- See the timestamp of the latest invocation of a specific scheduled job
- See invocation timestamps of scheduled jobs historically
- See how long a scheduled job took
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 @Timed
on a @Scheduled
method.
from micrometer.
@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 )
from micrometer.
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.
from micrometer.
Related Issues (20)
- OSGi import of javax.annotation and javax.annotation.meta is incorrect HOT 1
- Failed to bind as java.util.concurrent.ThreadPerTaskExecutor is unsupported. HOT 9
- Support for observing suspending functions with @Observed annotation HOT 2
- Announce OtlpMeterRegistry configuration found at startup
- Include deprecation in artifact description for CloudWatch v1 registry
- Can't inherit @Timed annotation in custom annotation HOT 1
- Manage context-propagation version in micrometer-bom HOT 2
- Use version catalog references and get rid of the versions array in dependencies.gradle
- Run micrometer on virtual threads HOT 6
- Otel Gauge setGauge() NoSuchMethodError HOT 1
- Allow custom SLO configuration when using a DistributionSummary. HOT 6
- Polish Prometheus 1.x changes
- Do not re-apply MeterFilters to IDs when registering if unnecessary HOT 14
- Configurable headers for All PushMeterRegistry HOT 2
- In kafka events, the traceId and spanId are not written in the logs HOT 4
- Distribution value has |bucket_counts| fields that sum to 4 which does not equal the |count| field value of 2 HOT 3
- Document MeterProvider
- How much memory is it use per one cardinality of meter? HOT 2
- Allow customizing PrometheusProperties via PrometheusConfig
- Update netty to fix a vulnerability HOT 1
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 micrometer.