Re: [prometheus-users] Config modification at Prometheus in Openshift cluster

2021-07-13 Thread Andy Andy
Thanks a lot for answer. Yes, prometheus operator. But how i can modify that and add targets? I mean i try to edit oc edit servicemonitor prometheus -n openshift-monitoring, but i cant see targets section. Documentation describe many different ways like edit secret, edit basic config file, edit

Re: [prometheus-users] Setting only Alertname and Instance as Subject for Email Notification.

2021-07-13 Thread Yagyansh S. Kumar
Hi Sadhana, You can use group_by feature in the Alertmanager's config file or you can drop the unwanted labels in the alert rule itself. On Tue, 13 Jul, 2021, 8:38 pm sadhana B, wrote: > HI, > > Any solution for this? > > On Tue, Dec 22, 2020 at 3:38 AM yagyans...@gmail.com < > yagyanshsku...@g

Re: [prometheus-users] Config modification at Prometheus in Openshift cluster

2021-07-13 Thread Ian Billett
Hey Andy, I'm going to assume that you are deploying Prometheus via the prometheus-operator? If so, you shouldn't need to modify the configuration file directly, as this will be managed via the Prometheus operator CRDs themselves (i.e. Prometheus, ServiceMonitor etc.) For Prometheus-operator ques

Re: [prometheus-users] Drop metric with specific label value.

2021-07-13 Thread Ian Billett
Hey Akshay, Have you checked out https://relabeler.promlabs.com/ ? It is an interactive web relabling tool - I've found it quite useful in the past. Hope that helps, Ian On Mon, Jul 12, 2021 at 12:13 PM akshay sharma wrote: > Hi, > > I'm trying to *drop metrics with specific label values *for

Re: [prometheus-users] multiple notifications integration alert

2021-07-13 Thread Ian Billett
Hello Laetitia, It looks like your configuration is *roughly *correct per the alertmanager receiver documentation . I always recommend people to check out prometheus' amtool

[prometheus-users] PromQL query to find metric for which label values are different

2021-07-13 Thread grze...@gmail.com
Hi all, let's say I have metric - some_metric{secret="aaa", some="ccc"} - other_metric{secret="aaa", some="ccc"} and I want to have a query which will tell me that for those metrics, for `secret="aaa"` values for `some` label are different. To give some context, I have some k8s metrics i

[prometheus-users] Config modification at Prometheus in Openshift cluster

2021-07-13 Thread Andy Andy
Hi everyone. Well, i deploy Prometheus on my Openshift cluster, but now I don't know how can i modify config file. Prometheus.yaml and prometheus.env.yaml is read-only and mounted as volume. And i try to look events at config reloaded and i got this: * command: - /bin/prometheus-con

[prometheus-users] % cpu utilization

2021-07-13 Thread Venkata Bhagavatula
Hi All, I am trying to add an alert rule, which raises an alert when %utilization of container cpu usage is above a certain threshold. Our scrape interval is 1min Following is expression, i started with: sum(rate (container_cpu_usage_seconds_total{container=~'.+'}[4m])*100) by (namespace,containe