[prometheus-users] Regexp match in template

2024-06-28 Thread fiala...@gmail.com
Hi, is it possible to make a regexp match in annotation? I need to check, if label contains specific string. function "regexMatch" not definedThank you. -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and st

[prometheus-users] PromQL - Check for specific value in the past

2024-03-06 Thread fiala...@gmail.com
Hi, I have a metric bgp_state_info. Ok state is when metric has value = 3, other values (from 1 to 7) are considered as error. I want to fire alert only for metrics that has value 3 at least only once. In other words I dont' want to fire alert for bgp that never worked. Is it possible via prom

Re: [prometheus-users] max_over_time - start of month

2022-10-05 Thread fiala...@gmail.com
gt; max_over_time( >> ( >> >> rack_max_power_watts{job="Max power on path /racks/max-power"} >> and on() # Filter rack power watt values down to only those from >> October >> month() == 10 >> )[5w:] >>

[prometheus-users] max_over_time - start of month

2022-10-05 Thread fiala...@gmail.com
Hi, It is possible to get maximum value in current month? My query is: round((max_over_time(rack_max_power_watts{job="Max power on path /racks/max-power"}[4w]) Thank you. -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe fro

Re: [prometheus-users] PromQL - Absenth - labels

2021-04-15 Thread fiala...@gmail.com
t doesn't return labels because there aren't any. Add the labels you > need for the alert identification in the labels section. > > --Matt > > On Thu, Apr 15, 2021, 07:50 fiala...@gmail.com wrote: > >> Hi, >> >> I have cpu usage exporter with these metric

[prometheus-users] PromQL - Absenth - labels

2021-04-15 Thread fiala...@gmail.com
Hi, I have cpu usage exporter with these metrics for every running processes. process_cpu_usage{command="/usr/bin/rsyslog -n"} 0.12 I would like to use this exporter for monitoring if process is running. I've tried to use absent - but with regexp match it doesn't return "command" label. And I

[prometheus-users] Query condition in alert template

2021-03-18 Thread fiala...@gmail.com
Hi, I have the description for port utilization alert defined this way: Interface Problem: Utilization OUT [[ $value ]]% (current: [[ printf "round(port_out_bps{port_id='%s'} / ignoring(job) port_speed{port_id='%s'} * 100, 0.1)" .Labels.port_id .Labels.port_id | query | first | value ]]%) Some

[prometheus-users] PromQL prolong alert 30 minutes

2021-01-27 Thread fiala...@gmail.com
Hi, I have a simple rule for monitoring traffic drop (by 20% in last 15 minutes): some_traffic_metric < (some_traffic_metric offset 15m * 0.8) I need this alert to be active for at least 30 minutes. Please help, how to rewrite the query. Thank you. -- You received this message because you

[prometheus-users] Labels as additional text info

2020-11-04 Thread fiala...@gmail.com
Hi, I have a question about labels in metrics. Is it suitable to add additional data to label? I want to report alerts about autonomous systems that has number and name (for example: AS2914 NTT America Inc. A want to include both in text message of alert. There are two different approches: 1

[prometheus-users] Alertmanager inhibitions with webhook

2020-09-08 Thread fiala...@gmail.com
Hi, I'm using alertmanager with webhook reciever and stora active alerts in our own SQL DB to show active incidents. I would like to implement inhibition rules. Is there any way how to recieve info about inhibited notification via webhook? Thank you. -- You received this message because you

Re: [prometheus-users] PromQL stateless issue

2020-08-12 Thread fiala...@gmail.com
Thank you! It helps. On Wednesday, August 12, 2020 at 9:05:17 AM UTC+2 Julien Pivotto wrote: > On 12 Aug 00:00, fiala...@gmail.com wrote: > > Hi, > > > > I would like to write a rule for alerting e.g. packet discards in > percent. > > > > My requireme

[prometheus-users] PromQL stateless issue

2020-08-12 Thread fiala...@gmail.com
Hi, I would like to write a rule for alerting e.g. packet discards in percent. My requirements are: - trigger an alert when discards are at least 10 minutes higher than X - close alert when discards are more then 60m equals to zero I'm not sure, how to define it in PromQL. Because I haven't inf