How to export metrics' labels to promtheus2?

Asked by Heitor

Hello,

I'm trying to extend the [prometheus-node-exporter](https://github.com/omnivector-solutions/charm-prometheus-node-exporter) charm to add custom labels when exporting metrics.

I'm trying to add a field `labels` in the relation data for that, but so far, I was unable to send them to prometheus2, for it to extend the targets with the labels.

Is there an example or documentation on how to do this?

Thank you in advance.

Question information

Language:
English Edit question
Status:
Expired
For:
Prometheus2 charm Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.