# kube-prometheus-stack Helm chart values # Installed via: # helm install kube-prometheus-stack prometheus-community/kube-prometheus-stack \ # --namespace monitoring --version 88.6.1 -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 # Hard size cap: keep total TSDB size at/below 8GiB (~80% of the 10Gi PVC). # Prevents a metric-cardinality spike from filling the Hetzner volume. retentionSize: "8GB" # 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.