Micrometer is emitting 0 values for @Timed annotated methods #1714
Labels
enhancement
A general enhancement
registry: influx
An InfluxDB Registry related issue
waiting for feedback
We need additional information before we can continue
Milestone
Hello,
I started introducing micrometer and use the
@Timed
annotation to keep track on my Controllers' REST endpoints and I am having trouble with getting too many orphaned data in InfluxDb. I doubt that it has something to do with InfluxDb or the@Timed
annotation, but I think this might be a missing feature in general.I was reading a bit about this already and while some people say my step-ratio of 15s should be tweaked according to my expected traffic, I would argue this does not really help out, because even high traffic applications have
@Timed
annotated methods in the code that are called less often than other methods.Let's imagine a Onlineshop checkout application having a REST method for creating baskets and a REST method for retreiving the remaining giftcard amount of giftcard XYZ. For sure in the night there are still a lot of baskets created, but only every couple of minutes there is 1 call for evaluation of a giftcard balance. For this reason my InfluxDb is filled with 0's unnecessarily and I am looking for a way of suppressing emitting of 0 values.
Did someone find a way of doing so?
Thanks in advance.
The text was updated successfully, but these errors were encountered: