Re: [prometheus-users] Scrape only a particular namespace and ignore all other namespaces

2023-03-27 Thread Himanshu Gude
Hello Julien, I have used the method which you have mentioned. I think this way will stop the prometheus from scraping metrics for all the other namespaces except devsecops. If this works it will also fix the issue that i m facing. But I think supppressing the alerts from alertmanager will be a

Re: [prometheus-users] Scrape only a particular namespace and ignore all other namespaces

2023-03-26 Thread Julien Pivotto
You can update the prometheus config: scrape_configs: - job_name: 'kubernetes-pods' kubernetes_sd_configs: - role: pod namespaces: names: - devsecops On 25 Mar 23:00, Himanshu Gude wrote: > Hello guys, > > There is a requirement in my project which stat

[prometheus-users] Scrape only a particular namespace and ignore all other namespaces

2023-03-25 Thread Himanshu Gude
Hello guys, There is a requirement in my project which states that, the client only wants alerts from "devsecops" namespace and alerts from all other namespaces should be ignored. which means alerts from namespaces other than "devsecops" should not be captured by the alertmanager and should not