On Mon, Jan 17, 2022 at 05:00:35AM -0800, ehsan karimi wrote: > I install the mysqld-exporter on Kubernetes and when I scrape it with > Prometheus, the instance label will show the pod IP of the mysqld-exporter > instance and when we saw the MySqlIsDown alert, I don't know what MySQL > instance is for it. I wanna add a label to the exposed metrics to show the > host of MySQL.
https://prometheus.io/docs/instrumenting/writing_exporters/#target-labels-not-static-scraped-labels describes why this is a bad idea. Use server-side relabelling to give your metrics meaningful metadata, if you need it. - Matt -- You received this message because you are subscribed to the Google Groups "Prometheus Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/20220117233842.GC13672%40hezmatt.org.

