[prometheus-users] $value and active since.

2021-02-18 Thread Sebastian Glock
Hi, is there an option to add $value from prometheus in the alert header? $value works in description but i can't insert it into header like in zabbix. The second question is whether $value can be made eye-friendly, that will reduce the decimals to 0 or 1? Another question about alerts, is it

[prometheus-users] Repeat interval and absent hours on instance.

2021-02-25 Thread Sebastian Glock
Hi, I have problem with repeat_interval. I want to specify in routes diffrent repeating. alertmanager.yml ``` global: route: receiver: alert-emailer-default-30m group_by: ['alertname', 'priority', 'instance'] group_wait: 1m group_interval: 1m repeat_interval: 30s routes: - receiv

[prometheus-users] Re: Repeat interval and absent hours on instance.

2021-02-25 Thread Sebastian Glock
Ok I have done 1st problem: ``` severity: "[Average] {{ $labels.instance }}" ``` There can't be $labels.instance - without it works great. czwartek, 25 lutego 2021 o 14:27:18 UTC+1 Sebastian Glock napisał(a): > Hi, I have problem with repeat_interval. I want to specify in

[prometheus-users] Two instances in query.

2021-02-25 Thread Sebastian Glock
Hi, is there any option to insert 2 instances in 1 query? Something like that: ``` (100 - avg_over_time(probe_success{instance="instance1" , "instance2"}[5m]) * 100) ``` I want to set query just for 2 insances of 10 and I'm looking for possibilities :) And yes i need it in just ONE query, no

Re: [prometheus-users] Two instances in query.

2021-02-25 Thread Sebastian Glock
Thanks mate! czwartek, 25 lutego 2021 o 21:07:17 UTC+1 Julien Pivotto napisał(a): > On 25 Feb 11:57, Sebastian Glock wrote: > > Hi, is there any option to insert 2 instances in 1 query? Something like > > that: > > > > ``` > > (100 - avg_over_time(

[prometheus-users] Delete old data in prometheus and grafana.

2021-03-15 Thread Sebastian Glock
Hi I need an clearly information how to delete instance from prometheus and from grafana. If i change TSDB storage for ex 10s it remove, but all of data from grafana too. Is there any possibly way to delete for example just 1 instance from prometheus & grafana? Thanks for all your replies! --

Re: [prometheus-users] Delete old data in prometheus and grafana.

2021-03-16 Thread Sebastian Glock
e series, enable administrative APIs and >> use the DeleteSeries endpoint: >> >> https://prometheus.io/docs/prometheus/latest/querying/api/ >> >> To match all metrics from a given instance, use a matcher like >> >> {instance="xxx:1234"} >> >>

Re: [prometheus-users] Delete old data in prometheus and grafana.

2021-03-16 Thread Sebastian Glock
Thanks a lot for your replies! wt., 16 mar 2021 o 10:02 Stuart Clark napisał(a): > On 16/03/2021 07:35, Sebastian Glock wrote: > > > > I see it removes from prometheus, but when it removes from grafana? > > after about 24h? > Grafana doesn't store any data, it

[prometheus-users] Send resolved without slack

2021-03-29 Thread Sebastian Glock
Hi, is there any way to configure send resolved without slack? I only found configuration with slack channel. I tried to add send resolved on true but it's not working. Is that even possible? -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group.

Re: [prometheus-users] Send resolved without slack

2021-03-29 Thread Sebastian Glock
olved, second with send resolved: true. I thought i'll get an email "alert-emailer-cpu-1h-resolved" after 5 minutes when 1st alert "alert-emailer-cpu-1h" goes out. Is there any other way to solve that? Thanks for your help! pon., 29 mar 2021 o 14:05 Stuart Clark napis

Re: [prometheus-users] Send resolved without slack

2021-03-31 Thread Sebastian Glock
that alert has been resolved, but in prometheus that alert is just green and show nothing. wt., 30 mar 2021 o 12:24 Matthias Rampke napisał(a): > I *think* you can have one email config, and toggle whether to show > [RESOLVED] as part of the template. Looking at the default templates > <

[prometheus-users] Absent in prometheus config.

2021-05-13 Thread Sebastian Glock
Hi, I have a problem with absent hours in prometheus: hour(v=vector(time()) instant-vector) returns the hour of the day for each of the given times in UTC. Returned values are from 0 to 23. minute(v=vector(time()) instant-vector) returns the minute of the hour for each of the given times in UT

Re: [prometheus-users] Send resolved without slack

2021-05-13 Thread Sebastian Glock
done based on the state of each notification, you can see how it's > done in the default value of the "color" setting: > https://prometheus.io/docs/alerting/latest/configuration/#slack_config > > You need only one receiver and set send_resolved: true on it. Then you c

Re: [prometheus-users] Send resolved without slack

2021-05-14 Thread Sebastian Glock
Ok I see problem, but how can i separate email subjects from alert and alert-resolved? Can I somehow insert 2 templates of email or 2 templates of subject into 1 alert? How alertmanager will know when to use 1st template and second? pt., 14 maj 2021 o 08:45 Sebastian Glock napisał(a): > Ok

[prometheus-users] Separate mails from FIRING and RESOLVED

2021-05-14 Thread Sebastian Glock
Hi, I have send resolved set to true and I found an interesting option to show the alert time in the alert: duration: {{(.EndsAt.Sub .StartsAt).Truncate 10}} But when alerts fires i have something like this: -2562047h47m16s When resolved alert comes it looks gr8: 2m15s How can i separ

Re: [prometheus-users] Separate mails from FIRING and RESOLVED

2021-05-19 Thread Sebastian Glock
. I just want to see that word "RESOLVED" if alert is resolved. If still firing i don't want to see "FIRING". Thanks for your help! śr., 19 maj 2021 o 01:17 Julien Pivotto napisał(a): > On 14 May 13:57, Sebastian Glock wrote: > > Hi, > > > > I

[prometheus-users] Time between FIRING and RESOLVED.

2021-05-19 Thread Sebastian Glock
Hi, Does anyone know how to set the time between firing and resolved alert? I thought it is resolve_timeout after "global" line in alertmanager.yml, but it not working. Is there something that need to be configured additionally? Thanks for replies! -- You received this message because you are

[prometheus-users] Silence in minutes.

2021-06-06 Thread Sebastian Glock
Hi, Have u got any idea how to silence alert for from ex. 6.00 to 6.15? I'm using absent(hours) but absent(minutes) will silence every hour for those minutes that I'll set, I'm right? :D -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To

[prometheus-users] Resolved even if not all alerts resolved.

2021-06-15 Thread Sebastian Glock
Hi, I have config in alertmanager with 3 levels of alert: 1. fire if >=70% <80% 2. fire if >=80 < 90% 3. fire if >= 90% and I have send_resolved set on true. Now my problem is as follows: When 1st alert is over 90% it sends me "RESOLVED", even if VM is over 91% for ex. CPU. Is is possible t

[prometheus-users] Null value in alerts

2022-12-08 Thread Sebastian Glock
Hi, I'm having trouble setting up an alert that will send a notification when a value is different from 0 and the value is missing (i.e. null). expression: windows_mscluster_resourcegroup_state {name!~"Available Storage"} != 0 or on() vector(0) The alert goes off non-stop. How can I set the me