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 better fix for me. If you can suggest something for that it will help.
Thanks again! On Monday, March 27, 2023 at 12:24:34 AM UTC+5:30 Julien Pivotto wrote: > 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 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 > > trigger tickets in ServiceNow. > > > > In short, prometheus should only scrape metrics from only one namespace > ie; > > devsecops > > > > would really appreciate some sort of hel here. > > Thanks in advance.... > > > > -- > > 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 prometheus-use...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/e4ef8176-930d-4743-9118-90bbab5f2164n%40googlegroups.com > . > > > -- > Julien Pivotto > @roidelapluie > -- 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 prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/91c46a6e-7232-45dd-8139-03ef44e38ecen%40googlegroups.com.