This is unreleased documentation for SUSE® Rancher Manager v2.15 (Unreleased).

Prometheus Configuration

Deprecation Notice

Rancher Monitoring v2 (rancher-monitoring) is deprecated and no longer receives updates. Rancher maintains the legacy chart only to support existing deployments. For new installations, ongoing updates, and support, use the decoupled rancher-monitoring-dashboards chart. For instructions on migrating, see Migrating from rancher-monitoring to rancher-monitoring-dashboards.

It is usually not necessary to directly edit the Prometheus custom resource because the monitoring application automatically updates it based on changes to ServiceMonitors and PodMonitors.

This section assumes familiarity with how monitoring components work together. For more information, see this section.

About the Prometheus Custom Resource

The Prometheus CR defines a desired Prometheus deployment. The Prometheus Operator observes the Prometheus CR. When the CR changes, the Prometheus Operator creates prometheus-rancher-monitoring-prometheus, a Prometheus deployment based on the CR configuration.

The Prometheus CR specifies details such as rules and what Alertmanagers are connected to Prometheus. Rancher builds this CR for you.

Monitoring V2 only supports one Prometheus per cluster. However, you might want to edit the Prometheus CR if you want to limit monitoring to certain namespaces.