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
metric: provide way to declare labels. #27835
Conversation
tommyp1ckles
commented
Aug 30, 2023
•
edited
edited
3ab8110
to
c63d9d9
Compare
56a82b0
to
dea86e1
Compare
This pull request has been automatically marked as stale because it |
62b3457
to
2a2c318
Compare
d3f704b
to
7e91bf4
Compare
Commit c3672f9 does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
7e91bf4
to
0683f52
Compare
Commit c3672f9 does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
0683f52
to
a5c5b03
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tommyp1ckles Tx for the updates! a few more picks...
7401193
to
6bf83f2
Compare
/test |
6bf83f2
to
7bb888a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tommyp1ckles LG!
3a69ef8
to
1167559
Compare
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tommyp1ckles Tx for the updates!
/ci-clustermesh |
1d7a01b
to
7b98652
Compare
/test |
This will be used in subsequent commits to implement metric label initialization. Signed-off-by: Tom Hadlaw <tom.hadlaw@isovalent.com>
Adds *WithLabels Vec[T] constructors for histogram/gauge/counter. This provides a mechanism to declare a metrics possible range of label values up front. The xxxWithLabels functions will automatically initialize such metrics such that they will be exported with zero values by the prometheus endpoint. One of the stated best practices for Prometheus instrumentation is avoiding missing metrics [1]. This change will make it easier to provide metrics that are initialized correctly to produce more reliable metrics. [1] https://prometheus.io/docs/practices/instrumentation/#avoid-missing-metrics Signed-off-by: Tom Hadlaw <tom.hadlaw@isovalent.com>
Using previous commits, initializes metrics to zero for various existing metrics. Signed-off-by: Tom Hadlaw <tom.hadlaw@isovalent.com>
/test |
7b98652
to
bd5ec0b
Compare