[prometheus-users] Create custom alert for a specific service

2023-04-19 Thread Himanshu Gude
Hello all, There is a requirement by the client where they want the alert for a particular service (app), V2. is there any way, we can create a custom alert for monitoring the particular deployment. This is the current the alert that we have for monitoring the deployments (pods) *name: KubePo

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

2023-03-27 Thread Himanshu Gude
es_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

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

2023-03-27 Thread Himanshu Gude
s values it > generates (including the labels), as long as it's generating at least one > alert of course. > > On Monday, 27 March 2023 at 06:56:58 UTC+1 Himanshu Gude wrote: > >> yes, I m new to prometheus env. could you pls give an example for each >> case, which

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

2023-03-26 Thread Himanshu Gude
you can't configure the scrape URL > to fetch only one namespace, then you can use metric_relabel_rules to > discard all metrics except the ones of interest (again, matching on some > namespace label to identify which ones to keep or drop) > > On Sunday, 26 March 2023 at 07:

[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