2024-09-22 00:33:56 +00:00
|
|
|
---
|
|
|
|
apiVersion: source.toolkit.fluxcd.io/v1
|
|
|
|
kind: HelmRepository
|
|
|
|
metadata:
|
2024-09-22 00:39:38 +00:00
|
|
|
name: monitoring
|
2024-09-22 00:33:56 +00:00
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
2024-09-27 10:35:43 +00:00
|
|
|
interval: 5m0s
|
2024-09-22 00:33:56 +00:00
|
|
|
url: https://prometheus-community.github.io/helm-charts
|
|
|
|
---
|
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: kube-prometheus-stack
|
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
|
|
|
interval: 30m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: kube-prometheus-stack
|
2024-10-25 16:03:17 +00:00
|
|
|
version: "65.5.0"
|
2024-09-22 00:33:56 +00:00
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
2024-09-22 00:39:38 +00:00
|
|
|
name: monitoring
|
2024-09-22 00:33:56 +00:00
|
|
|
namespace: monitoring
|
|
|
|
interval: 12h
|
2024-09-22 05:18:56 +00:00
|
|
|
values:
|
|
|
|
# Prometheus Volume
|
|
|
|
prometheus:
|
|
|
|
prometheusSpec:
|
2024-09-22 06:14:08 +00:00
|
|
|
scrapeInterval: 30s
|
2024-09-22 05:37:04 +00:00
|
|
|
evaluationInterval: 30s
|
2024-09-22 05:27:52 +00:00
|
|
|
ruleSelectorNilUsesHelmValues: false
|
|
|
|
serviceMonitorSelectorNilUsesHelmValues: false
|
|
|
|
podMonitorSelectorNilUsesHelmValues: false
|
|
|
|
probeSelectorNilUsesHelmValues: false
|
|
|
|
scrapeConfigSelectorNilUsesHelmValues: false
|
|
|
|
enableAdminAPI: true
|
|
|
|
walCompression: true
|
|
|
|
enableFeatures:
|
|
|
|
- auto-gomemlimit
|
|
|
|
- memory-snapshot-on-shutdown
|
|
|
|
- new-service-discovery-manager
|
2024-09-22 06:14:08 +00:00
|
|
|
retention: 30d
|
2024-09-22 05:27:52 +00:00
|
|
|
retentionSize: 40GB
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
limits:
|
|
|
|
memory: 1500Mi
|
2024-09-22 05:18:56 +00:00
|
|
|
storageSpec:
|
2024-09-22 05:23:14 +00:00
|
|
|
volumeClaimTemplate:
|
|
|
|
spec:
|
|
|
|
storageClassName: nfs-csi
|
|
|
|
accessModes: ["ReadWriteOnce"]
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 50Gi
|
2024-09-26 14:17:36 +00:00
|
|
|
|
|
|
|
# ServiceMonitor configurations
|
|
|
|
serviceMonitors:
|
|
|
|
node-exporter:
|
|
|
|
metricRelabelings:
|
|
|
|
- action: replace
|
|
|
|
regex: (.*)
|
|
|
|
replacement: $1
|
|
|
|
sourceLabels:
|
|
|
|
- __meta_kubernetes_pod_node_name
|
|
|
|
targetLabel: kubernetes_node
|
|
|
|
kubelet:
|
2024-09-26 14:15:05 +00:00
|
|
|
metricRelabelings:
|
|
|
|
- action: replace
|
|
|
|
sourceLabels:
|
|
|
|
- node
|
|
|
|
targetLabel: instance
|