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 [email protected].
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/ZCCU4jsJnDIJuXLb%40nixos.

Reply via email to