Prometheus
prometheus.io › docs › prometheus › latest › configuration › alerting_rules
Alerting rules | Prometheus
Alerting rules are configured in Prometheus in the same way as recording rules. ... groups: - name: example labels: team: myteam rules: - alert: HighRequestLatency expr: job:request_latency_seconds:mean5m{job="myjob"} > 0.5 for: 10m keep_firing_for: 5m labels: severity: page annotations: summary: High request latency
Samber
samber.github.io › home › rules
1162 Prometheus Alerting Rules for 94 Services | Awesome Prometheus Alerts
Awesome Prometheus AlertsAPA · ⌘K · Sponsored by · Search · 1162 alerting rules across 94 services and 13 categories. ⚠️ · Alert thresholds depend on the nature of your applications. Some queries may have arbitrary tolerance thresholds. Building an efficient monitoring platform takes time.
Prometheus alerts
So a little bit of guidance would be nice. I’m trying to create some alerts and what would be best practice here. I have like 10 nginx services on 1… More on reddit.com
Projects to manage alerting rules?
I've tried https://github.com/line/promgen once, but back then it was not really suitable for our environments. But I guess this is probably what you are looking for. More on reddit.com
Unit testing Prometheus alerts
Will check it out
More on reddit.comHow to import PrometheusRule to Grafana Mimir
Read the docs on Mimir's Ruler. You can get it to load rules files from disk, or you can use the ruler API. From memory they're the same format though More on reddit.com
26:50
Alerting Rules in Prometheus with Examples | Add Alerting Rules ...
13:55
Prometheus Alertmanager - YouTube
42:07
Full Tutorial: AlertManager Set up and PrometheusRules - YouTube
24:42
06 How to configure recording & Alerting Rules with example in ...
13:26
Alerting Rules in Prometheus | Prometheus Tutorial for Beginners ...
09:15
Prometheus Tutorial | Prometheus Server Down Alert | Prometheus ...
Last9
last9.io › blog › prometheus-alerting-examples
Prometheus Alerting Examples for Developers | Last9
June 2, 2025 - The for duration specifies how long a condition must be true before firing an alert, while the evaluation interval determines how often Prometheus checks the condition. An alert with for: 5m needs the condition to be true for five consecutive evaluations. ... Use Alertmanager’s grouping and inhibition features. Group related alerts together and set up inhibition rules so that higher-severity alerts silence related lower-severity ones.
GitHub
github.com › bdossantos › prometheus-alert-rules
GitHub - bdossantos/prometheus-alert-rules: Collection of Prometheus Alert Rules · GitHub
All alert names use CamelCase and include severity labels (page, warning, info). ... The textfile-collector/ directory contains shell scripts for use with node_exporter's textfile collector. They expose metrics not natively available from exporters. ... Copy the scripts to your textfile collector directory (e.g. /var/lib/node_exporter/textfile_collector/) and schedule them via cron or a systemd timer. Docker — used to run promtool for rule validation
Author: bdossantos
Cloudflare
blog.cloudflare.com › monitoring-our-monitoring
Monitoring our monitoring: how we validate our Prometheus alert rules | Cloudflare Blog
May 19, 2022 - If we modify our example to request [3m] range query we should expect Prometheus to return three data points for each time series: Knowing a bit more about how queries work in Prometheus we can go back to our alerting rules and spot a potential problem: queries that don’t return anything.
Promlabs
training.promlabs.com › training › monitoring-and-debugging-prometheus › metrics-based-meta-monitoring › alerting-rule-examples
Alerting Rule Examples
The alerting rules should be wide-ranging, starting from testing the reachability of your Prometheus and Alertmanager servers by checking the up metric's value and its presence, and then checking whether the scraping, TSDB sample ingestion, and rule evaluation works fine, whether alerts are sent out to the Alertmanager without errors or delays, and so on.
Prometheus
prometheus.io › docs › prometheus › latest › configuration › recording_rules
Defining recording rules | Prometheus
Rules within a group are run sequentially at a regular interval, with the same evaluation time. The names of recording rules must be valid metric names. The names of alerting rules must be valid label values. ... groups: - name: example rules: - record: code:prometheus_http_requests_total:sum expr: sum by (code) (prometheus_http_requests_total)
SolarWinds
solarwinds.com › home › latest posts › how to write effective prometheus alert rules: best practices & examples
How to Write Effective Prometheus Alert Rules: Best Practices & Examples
June 26, 2026 - Prometheus uses the PromQL (Prometheus Query Language) to create alerting rules. The alert expression is the core of a Prometheus alert. You use PromQL to define the condition that triggers an alert. For example, the following expression triggers an alert if the average CPU utilization on a host exceeds 80% for 5 minutes:
OneUptime
oneuptime.com › home › blog › how to implement prometheus alert rule design
How to Implement Prometheus Alert Rule Design
January 30, 2026 - The following example implements multi-window burn-rate alerting. It uses both short and long windows to balance detection speed against alert precision. # Recording rules to calculate error ratios groups: - name: slo_recording_rules rules: # 5m error ratio - record: http_request:error_ratio:rate5m expr: | sum(rate(http_requests_total{status=~"5.."}[5m])) / sum(rate(http_requests_total[5m])) # 30m error ratio - record: http_request:error_ratio:rate30m expr: | sum(rate(http_requests_total{status=~"5.."}[30m])) / sum(rate(http_requests_total[30m])) # 1h error ratio - record: http_request:error_r
Doks
prometheus-operator.dev › home › docs › developer › alerting routes
Alerting Routes - Prometheus Operator
Templates will be accessible to the Alertmanager container under the /etc/alertmanager/config directory. The Alertmanager configuration can reference them like this: ... The following example configuration creates an AlertmanagerConfig resource that sends notifications to a fictitious webhook service.
Microsoft Learn
learn.microsoft.com › en-us › azure › azure-monitor › alerts › prometheus-alerts
Prometheus metric alerts in Azure Monitor - Azure Monitor | Microsoft Learn
The rule queries are applied on Prometheus metrics stored in an Azure Monitor workspace. Whenever the alert query results in one or more time series meeting the condition, the alert counts as pending for these metric and label sets. A pending alert becomes active after a user-defined period of time during which all the consecutive query evaluations for the respective time series meet the alert condition.
GitHub
github.com › giantswarm › prometheus-rules
GitHub - giantswarm/prometheus-rules: Giant Swarm Prometheus alerting and recording rules · GitHub
The base principle is: if an alert is currently firing with a source_matcher label, then all alerts that have a target_matcher label are inhibited (or muted). To make inhibitions easier to read, let's try to follow this naming convention inhibition-related labels: ... Official documentation for inhibit rules can be found here: https://www.prometheus.io/docs/alerting/latest/configuration/#inhibit_rule
Author: giantswarm
LinkedIn
linkedin.com › posts › sanjal-s-eralil-499578229_writing-efficient-prometheus-rules-activity-7327541889665028096-hBKz
How to create Prometheus alert rules for proactive monitoring
Login to LinkedIn to keep in touch with people you know, share ideas, and build your career.
Reddit
reddit.com › r/prometheusmonitoring › prometheus alerts
r/PrometheusMonitoring on Reddit: Prometheus alerts
February 22, 2024 - Prometheus Monitoring subreddit · Weekly visitors · Weekly contributions • · securebeats · So a little bit of guidance would be nice. I’m trying to create some alerts and what would be best practice here. I have like 10 nginx services on 10 different hosts . Should I create like 10 separate alerts and name them nginx_instancename ? Or is it possible to use 1 alert rule so i can see 10 active in the alert manager ui ?
Adeptia
docs.adeptia.com › articles
Configuring rules and alerts in Prometheus
July 21, 2025 - Self-Service Integration for Business People · Adeptia Documentation
Samber
samber.github.io › awesome-prometheus-alerts
Awesome Prometheus Alerts | Copy-pasteable Prometheus alerting rules
October 21, 2018 - PromQL (Prometheus Query Language) ... rules use PromQL expressions — for example, rate(http_requests_total[5m]) > 100 fires when request rate exceeds 100/s over a 5-minute window....
Author: Samuel Berthe
Samber
samber.github.io › awesome-prometheus-alerts › rules.html
Awesome Prometheus alerts | Collection of alerting rules
Redirecting to /awesome-prometheus-alerts/rules/…
Prometheus
prometheus.io › docs › prometheus › latest › configuration › unit_testing_rules
Unit testing for rules | Prometheus
We consider the alerting rules from the input file. alert_rule_test: [ - <alert_test_case> ] # Unit tests for PromQL expressions. promql_expr_test: [ - <promql_test_case> ] # External labels accessible to the alert template. external_labels: [ <labelname>: <string> ... ] # External URL accessible to the alert template. # Usually set using --web.external-url. [ external_url: <string> ] # This follows the usual series notation '<metric name>{<label name>=<label value>, ...}' # Examples: # series_name{label1="value1", label2="value2"} # go_goroutines{job="prometheus", instance="localhost:9090"} series: <string> # This uses expanding notation.