oracledb_exporter icon indicating copy to clipboard operation
oracledb_exporter copied to clipboard

Export labels when using the option "fieldtoappend"

Open champ opened this issue 4 years ago • 0 comments

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

champ avatar Sep 28 '21 11:09 champ