Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
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

Description

@champ

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions