Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant