Replace manual Prometheus with kube-prometheus-stack Helm chart
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
# kube-prometheus-stack Helm chart values
|
||||
# Installed via:
|
||||
# helm install kube-prometheus-stack prometheus-community/kube-prometheus-stack \
|
||||
# --namespace monitoring --version 87.3.0 -f Monitoring/kube-prometheus-stack.values.yaml
|
||||
#
|
||||
# Notes:
|
||||
# - Bundled Grafana is disabled; the hand-managed Grafana in Monitoring/Grafana/
|
||||
# is kept and pointed at the operator-managed Prometheus service
|
||||
# (prometheus-operated.monitoring.svc.cluster.local:9090).
|
||||
# - Node Exporter is provided by the chart's subchart; the previous hand-rolled
|
||||
# Monitoring/Prometheus/node_exporter_*.yaml manifests should be removed.
|
||||
# - Prometheus data lives on hcloud-volumes (Hetzner CSI), matching the old PVC.
|
||||
# - The operator picks up ServiceMonitors across all namespaces
|
||||
# (serviceMonitorSelector: {} -> nil -> selects all).
|
||||
|
||||
# Keep CRDs on helm uninstall so a re-install doesn't lose Prometheus CRs.
|
||||
crds:
|
||||
enabled: true
|
||||
|
||||
# ---- Alertmanager ----------------------------------------------------------
|
||||
alertmanager:
|
||||
enabled: false # not used by the homelab yet; flip to true when needed.
|
||||
|
||||
# ---- Prometheus ------------------------------------------------------------
|
||||
prometheus:
|
||||
enabled: true
|
||||
|
||||
ingress:
|
||||
enabled: false # use the existing Grafana ingress for UI; expose later if needed
|
||||
|
||||
prometheusSpec:
|
||||
# Match the previous manual deployment's retention.
|
||||
retention: 15d
|
||||
|
||||
# Hetzner CSI volume, same class as the old prometheus-data PVC.
|
||||
storageSpec:
|
||||
volumeClaimTemplate:
|
||||
spec:
|
||||
storageClassName: hcloud-volumes
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
|
||||
# Select every ServiceMonitor in the cluster, regardless of labels.
|
||||
# (serviceMonitorSelectorNilUsesHelmValues must be false for {} to mean "all".)
|
||||
serviceMonitorSelectorNilUsesHelmValues: false
|
||||
serviceMonitorSelector: {}
|
||||
ruleSelectorNilUsesHelmValues: false
|
||||
ruleSelector: {}
|
||||
podMonitorSelectorNilUsesHelmValues: false
|
||||
podMonitorSelector: {}
|
||||
probeSelectorNilUsesHelmValues: false
|
||||
probeSelector: {}
|
||||
|
||||
# ---- Grafana (bundled) -----------------------------------------------------
|
||||
grafana:
|
||||
enabled: false # use the hand-managed Grafana in Monitoring/Grafana/
|
||||
|
||||
# Still render the operator's datasource/dashboards ConfigMaps so the
|
||||
# hand-managed Grafana can mount them if desired.
|
||||
forceDeployDatasources: false
|
||||
forceDeployDashboards: false
|
||||
defaultDashboardsEnabled: false
|
||||
|
||||
# ---- Node Exporter ---------------------------------------------------------
|
||||
# The chart ships prometheus-node-exporter as a subchart; a ServiceMonitor is
|
||||
# created automatically, so the old kubernetes-node-exporters scrape job in
|
||||
# prometheus_configmap.yaml becomes redundant once the operator is running.
|
||||
prometheus-node-exporter:
|
||||
enabled: true
|
||||
prometheus:
|
||||
monitor:
|
||||
enabled: true
|
||||
|
||||
# ---- kube-state-metrics ---------------------------------------------------
|
||||
# Enabled by default in the chart; provides cluster-state metrics
|
||||
# (deployments, pods, nodes, etc.). No overrides needed.
|
||||
Reference in New Issue
Block a user