Thanks Stuart. I switched to relabel_config and now all good. On Thu, 14 Jan 2021, 21:05 Stuart Clark, <[email protected]> wrote:
> On 13/01/2021 20:31, Tom Gregory wrote: > > Hi Stuart. The metrics are coming from different scrapes. Each service is > a different endpoint. > > I'm doing the relabelling using *metric_relabel_configs.* > > metric relabeling is really more for removing metrics (if you can't turn > them off on the exporter/application side). > > For adding target specific tags you want to use "relabel_config" which is > run as part of the service discovery process. That's where you might add a > service label, and it would apply to all the metrics scraped as well as the > automatic ones such as "up". > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" 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-users/CADSXXdr4sZTY8%3D2VVXOy3unSHM%3Dz5MhUWm%3DzqwMj2snDEpG3UA%40mail.gmail.com.

