prometheus-operator

Prometheus Operator 在 Kubernetes 之上建立/設定/管理 Prometheus 叢集

prometheus-operator 是什麼?

Prometheus Operator 在 Kubernetes 之上建立/設定/管理 Prometheus 叢集

prometheus-operator 概覽

這是什麼

Prometheus Operator 提供 Kubernetes 原生的 Prometheus 及相關監控元件的部署與管理。它簡化並自動化 Kubernetes 叢集上基於 Prometheus 的監控堆疊配置。此專案本身被視為生產就緒,其自訂資源定義(CRD)有不同的穩定度等級:monitoring.coreos.com/v1(穩定)、v1beta1(不穩定但變更最小化)、v1alpha1(不穩定且頻繁變更)。

主要功能

  • 使用 Kubernetes 自訂資源來部署與管理 Prometheus、Alertmanager 及相關元件。
  • 透過原生 Kubernetes 資源簡化版本、持久化、保留策略與副本數的部署配置。
  • 根據 Kubernetes 標籤查詢自動產生監控目標配置。
  • 動態准入控制 webhook,在建立或更新 PrometheusRule 資源時進行驗證。
  • CRD 包含 Prometheus、PrometheusAgent、Alertmanager、ThanosRuler、ServiceMonitor、PodMonitor、Probe、ScrapeConfig、PrometheusRule 與 AlertmanagerConfig。

使用情境

  • 在 Kubernetes 上部署與管理 Prometheus 叢集。
  • 自動化 Kubernetes 叢集上基於 Prometheus 的監控堆疊配置。
  • 根據 Kubernetes 服務與 Pod 標籤自動產生抓取配置。
  • 與 kube-prometheus 整合,獲得完整的叢集監控堆疊,包含多個 Prometheus 與 Alertmanager 實例、節點匯出器及警示規則。

快速開始

若要快速在叢集內試用 Prometheus Operator,選擇一個版本並執行:

kubectl create -f bundle.yaml

若要在不同命名空間中使用 kustomize 部署:

NAMESPACE=my_namespace kustomize edit set namespace $NAMESPACE && kubectl create -k .

若要在叢集外執行 Operator:

make
scripts/run-external.sh

授權與價格

授權:Apache-2.0。價格:開放原始碼(免費)。

內容整理自該專案公開的 README 與儲存庫資訊。

將此徽章加入你的 README

Featured on YunoDB 徽章樣式與說明

你是這個專案的維護者嗎?展示它已收錄於 YunoDB。

Markdown[![Featured on YunoDB](https://yunodb.com/badge/prometheus-operatorprometheus-operator.svg)](https://yunodb.com/tools/prometheus-operatorprometheus-operator?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/prometheus-operatorprometheus-operator?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/prometheus-operatorprometheus-operator.svg" alt="Featured on YunoDB" height="20"></a>