-
Notifications
You must be signed in to change notification settings - Fork 20
Adds an update interval to the property and tag metrics #181
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
Adds an update interval to the property and tag metrics #181
Conversation
|
This seems like a nice addition. However, if the 5 second interval actually a good one? It seems that switching to re-running this that often might just be hammering the service in a different way. |
Its configurable. |
|
5s default seems a bit overkill to me - is there any use case for that time precision? |
|
Would it not be possible to update the atomic count every time a tag or a property is added or removed? Or is that perhaps a fool's errand? (The point being of course that the number of tags or proprties will not change in the last |
That is a separate metric, that isn't changed in this PR and it is tracked. CF_PROPERTY_COUNT and CF_TAG_COUNT in MetricsService. |
They take some resources, so if your are querying a lot of properties this can timeout
9e2a6c7 to
ab12ccb
Compare
Updated to 10 seconds |
|
Prometheus default scrape interval is 1m so we could do that or 30s to save CF resources 🔧 But otherwise LGTM |
|
One other question: Does this actually have to be an (I mean, other than if the update itself takes longer than the interval... 😄 ) |
|
I'm not sure if necessary when using the GaugeBuilder, but generally using Atomics is suggested in the documentation https://docs.micrometer.io/micrometer/reference/concepts/gauges.html |



They take some resources, so if your are querying a lot of properties this can timeout