This repository was archived by the owner on Oct 28, 2022. It is now read-only.
Replies: 1 comment 5 replies
-
That is how the prometheus output works now. What needs to be added is exporting without timestamp, but that can be fixed on the prometheus client side as well. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Prometheus doesn't play well with data that is not monotonously exported. ON_CHANGE subscriptions is that kind of data.
Here I asked how should prometheus user get the last value of a metric that appears irregularly (on_change event) and the reply was that it is against prom principles and the data that is present, should be exported all the time.
That got me thinking if gnmic can get the best from both worlds
and I am interested to see your opinion @karimra if something like this makes sense and is implementable:
Design
when gnmic creates an event format, it adds additional label to
stream-mode=sample|on_change
. The prom output when takes this event message checks if the stream-mode ison_change
. If it is, gnmic will check ifon-change-repeat
is set, and if both conditions are true gnmic will export the value periodically using the value from the last receivedon_change
eventBeta Was this translation helpful? Give feedback.
All reactions