oracledb_exporter
oracledb_exporter copied to clipboard
Export labels when using the option "fieldtoappend"
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