Skip to content
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

Export labels when using the option "fieldtoappend" #207

Open
champ opened this issue Sep 28, 2021 · 0 comments · May be fixed by #422
Open

Export labels when using the option "fieldtoappend" #207

champ opened this issue Sep 28, 2021 · 0 comments · May be fixed by #422

Comments

@champ
Copy link

champ commented Sep 28, 2021

When using the option fieldtoappend, labels are not exported.

Seems like the solution is to change this line main.go:401:

ch <- prometheus.MustNewConstMetric(desc, GetMetricType(metric, metricsType), value)

for

ch <- prometheus.MustNewConstMetric(desc, GetMetricType(metric, metricsType), value, labelsValues...)

Is there any limitation preventing the labels to be exported in this case?

Best/
Hampus

@nikosn nikosn linked a pull request Mar 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant