prometheus-operator
Prometheus Operator creates/configures/manages Prometheus clusters atop Kubernetes
What is prometheus-operator?
Prometheus Operator creates/configures/manages Prometheus clusters atop Kubernetes
Overview of prometheus-operator
What it is
The Prometheus Operator provides Kubernetes native deployment and management of Prometheus and related monitoring components. It simplifies and automates the configuration of a Prometheus based monitoring stack for Kubernetes clusters. The project is considered production ready, with Custom Resource Definitions (CRDs) at different stability levels: monitoring.coreos.com/v1 (stable), v1beta1 (unstable but changes are minimized), and v1alpha1 (unstable, frequent changes).
Key features
- Kubernetes Custom Resources to deploy and manage Prometheus, Alertmanager, and related components.
- Simplified deployment configuration for versions, persistence, retention policies, and replicas via native Kubernetes resources.
- Automatic generation of monitoring target configurations based on Kubernetes label queries.
- Dynamic admission control webhook to validate PrometheusRule resources upon creation or update.
- CRDs include Prometheus, PrometheusAgent, Alertmanager, ThanosRuler, ServiceMonitor, PodMonitor, Probe, ScrapeConfig, PrometheusRule, and AlertmanagerConfig.
Use cases
- Deploying and managing Prometheus clusters on Kubernetes.
- Automating the configuration of a Prometheus-based monitoring stack for Kubernetes clusters.
- Generating scrape configurations automatically from Kubernetes service and pod labels.
- Integrating with kube-prometheus for a complete cluster monitoring stack, including multiple Prometheus and Alertmanager instances, node exporters, and alerting rules.
Getting started
To quickly try out the Prometheus Operator inside a cluster, choose a release and run:
kubectl create -f bundle.yaml
To deploy in a different namespace using kustomize:
NAMESPACE=my_namespace kustomize edit set namespace $NAMESPACE && kubectl create -k .
To run the Operator outside of a cluster:
make
scripts/run-external.sh
License and pricing
License: Apache-2.0. Pricing: open source (free).
Based on the project's public README and repository metadata.