Prometheus Operator custom resources
The Prometheus Operator manages Prometheus and Alertmanager instances in a cluster through custom resources.
The Prometheus Operator manages Prometheus and Alertmanager instances in a cluster through custom resources. The monitoring stack of Cloudera Cloud Factory uses these resources. Instead of editing configuration files, you create or change a custom resource, and the Operator updates the running components.
| Custom resource | Purpose |
|---|---|
Prometheus | Defines a Prometheus server deployment. |
Alertmanager | Defines an Alertmanager deployment. |
ThanosRuler | Defines a Thanos Ruler deployment. |
ServiceMonitor | Selects Services whose endpoints Prometheus scrapes. |
PodMonitor | Selects Pods that Prometheus scrapes. |
Probe | Defines probes of Ingresses or static targets. |
PrometheusRule | Defines alerting and recording rules. |
AlertmanagerConfig | Defines routing and receivers for Alertmanager. |
PrometheusAgent | Defines a Prometheus instance in agent mode, which forwards metrics without local querying. |
Key defaults and limits
- Each Prometheus runs as a StatefulSet for each shard. The default is one shard. A
config-reloadersidecar applies configuration changes. - Run Alertmanager with two or more replicas for high availability. The Operator mounts the configuration from the Secret
alertmanager-<name>, with the keyalertmanager.yaml.
For the Alertmanager concepts, see Monitoring stack in Tools and reference.
For more information, see Prometheus Operator design.
