Files
rancher-docs/archived_docs/en/version-2.9/reference-guides/monitoring-v2-configuration/examples.md
T
Lucas Saintarbor 4a0d71b3f3 Archive v2.9 docs (#2219)
* Archive v2.9 content files / add archive notice

* Update config / sidebar

* Remove v2.9 redirects

* Fix typo in config

* Update versions listing page

* Fix typo in notice files

* Fix typo in versions listing page
2026-03-04 16:54:35 -08:00

1.4 KiB

title
title
Monitoring Configuration Examples
<head> </head>

ServiceMonitor

See the official prometheus-operator GitHub repo for an example ServiceMonitor YAML.

PodMonitor

See the Prometheus Operator documentation for an example PodMonitor and an example Prometheus resource that refers to a PodMonitor.

PrometheusRule

A PrometheusRule contains the alerting and recording rules that you would usually place in a Prometheus rule file.

For a more fine-grained approach, the ruleSelector field on a Prometheus resource can select which PrometheusRules should be loaded onto Prometheus, based on the labels attached to the PrometheusRules resources.

See the Prometheus Operator documentation for an example PrometheusRule.

Alertmanager Config

See the Rancher docs page on Receivers for an example Alertmanager config.