Using constantAttributes
with Prometheus metrics exporter
#2793
Unanswered
michaelfig
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I think the config types come from the API not the SDK. This is being fixed in the SDK rewrite. Currently, there is no constant attributes option in the new version. Is this something you have a need for? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that
constantAttributes
is typed asMetricOptions.constantAttributes
, one of the options when creating a metric:So, I tried using it:
However, looking through the 0.27 version of this repo, I don't see
constantAttributes
referenced anywhere. Is this just missing some plumbing, or what do I need to do to have those attributes reflected as additional labels in the Prometheus exporter?Beta Was this translation helpful? Give feedback.
All reactions