Giter Site home page Giter Site logo

Comments (6)

jkschneider avatar jkschneider commented on May 17, 2024 2

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.

checketts avatar checketts commented on May 17, 2024

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.

jkschneider avatar jkschneider commented on May 17, 2024

It may make sense to create an IntervalTimer as well to measure gaps between events.

from micrometer.

kevcodez avatar kevcodez commented on May 17, 2024

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.

checketts avatar checketts commented on May 17, 2024

@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.

marcingrzejszczak avatar marcingrzejszczak commented on May 17, 2024

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)

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.