Thanks, I found the place to make the changes! Basically for each `kind: 
ServiceMonitor` add `metricRelabelings` to drop labels. Appreciate the help!

On Tuesday, February 21, 2023 at 9:51:19 AM UTC-8 Stuart Clark wrote:

> On 21/02/2023 17:29, Jihui Yang wrote:
> > I didn't find a way to adjust those. If I append scrape config jobs to 
> > the end of the config file, they should be able to overwrite existing 
> > job right?
>
> No. Job configurations are self contained. So metrics scraped by a 
> particular job will have any relabelling rules applied for that 
> particular job only. The only way you can set relabelling rules for a 
> job is by editing the job config. For the Prometheus Operator this is 
> done by adjusting the PodMonitor/ServiceMonitor objects.
>
> -- 
> Stuart Clark
>
>

-- 
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/05ff5635-840b-4d8d-8663-e495579c7664n%40googlegroups.com.

Reply via email to