2024-06-06 19:28:21 +00:00
|
|
|
crds:
|
|
|
|
enabled: true
|
2022-04-03 17:59:29 +00:00
|
|
|
|
|
|
|
alertmanager:
|
|
|
|
ingress:
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
grafana:
|
|
|
|
enabled: true
|
|
|
|
namespaceOverride: "grafana"
|
|
|
|
|
2022-04-04 19:08:50 +00:00
|
|
|
image:
|
|
|
|
repository: grafana/grafana
|
2024-10-24 11:15:07 +00:00
|
|
|
tag: 11.3.0
|
2022-04-04 19:08:50 +00:00
|
|
|
|
2022-05-11 15:59:27 +00:00
|
|
|
persistence:
|
|
|
|
enabled: true
|
2022-12-30 19:38:01 +00:00
|
|
|
type: pvc
|
2023-02-15 21:39:18 +00:00
|
|
|
storageClassName: local-path
|
2022-12-30 19:38:01 +00:00
|
|
|
accessModes:
|
|
|
|
- ReadWriteOnce
|
2023-02-15 21:39:18 +00:00
|
|
|
size: 10Gi
|
2022-04-03 17:59:29 +00:00
|
|
|
|
|
|
|
defaultDashboardsTimezone: utc
|
|
|
|
|
|
|
|
ingress:
|
|
|
|
enabled: true
|
2023-02-28 09:54:40 +00:00
|
|
|
ingressClassName: ingress-internal
|
2022-04-03 17:59:29 +00:00
|
|
|
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: vault-issuer
|
|
|
|
|
2022-05-11 15:59:27 +00:00
|
|
|
hosts:
|
2022-04-03 17:59:29 +00:00
|
|
|
- grafana.dc
|
|
|
|
|
|
|
|
path: /
|
|
|
|
|
2022-05-11 15:59:27 +00:00
|
|
|
tls:
|
2022-04-03 17:59:29 +00:00
|
|
|
- secretName: grafana-general-tls
|
|
|
|
hosts:
|
|
|
|
- grafana.dc
|
|
|
|
|
2022-04-04 19:08:50 +00:00
|
|
|
admin:
|
|
|
|
existingSecret: "grafana"
|
|
|
|
|
2024-06-06 19:28:21 +00:00
|
|
|
defaultRules:
|
|
|
|
create: false
|
2022-04-03 17:59:29 +00:00
|
|
|
|
|
|
|
kubeDns:
|
|
|
|
enabled: false
|
|
|
|
kubeEtcd:
|
|
|
|
enabled: false
|
|
|
|
kubeScheduler:
|
2024-06-06 19:28:21 +00:00
|
|
|
enabled: false
|
2022-04-03 17:59:29 +00:00
|
|
|
kubeProxy:
|
2024-06-06 19:28:21 +00:00
|
|
|
enabled: false
|
2022-04-03 17:59:29 +00:00
|
|
|
kubeStateMetrics:
|
|
|
|
enabled: true
|
|
|
|
nodeExporter:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
prometheusOperator:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
kubeletService:
|
2024-06-06 19:28:21 +00:00
|
|
|
enabled: true
|
2022-04-03 17:59:29 +00:00
|
|
|
|
|
|
|
prometheus:
|
|
|
|
enabled: true
|
|
|
|
|
2022-05-11 15:59:27 +00:00
|
|
|
strategy:
|
2022-04-04 19:08:50 +00:00
|
|
|
type: Recreate
|
|
|
|
|
2022-04-03 17:59:29 +00:00
|
|
|
ingress:
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
prometheusSpec:
|
2023-03-29 20:01:51 +00:00
|
|
|
scrapeInterval: "60s"
|
2023-02-28 13:54:50 +00:00
|
|
|
retention: 90d
|
2022-04-03 17:59:29 +00:00
|
|
|
replicas: 1
|
2024-06-08 17:03:19 +00:00
|
|
|
|
|
|
|
serviceMonitorSelectorNilUsesHelmValues: false
|
|
|
|
serviceMonitorSelector: {}
|
|
|
|
serviceMonitorNamespaceSelector: {}
|
|
|
|
|
2023-02-28 13:54:50 +00:00
|
|
|
storageSpec:
|
|
|
|
volumeClaimTemplate:
|
|
|
|
spec:
|
|
|
|
storageClassName: ssd
|
|
|
|
accessModes: ["ReadWriteOnce"]
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 50Gi
|
2022-04-03 17:59:29 +00:00
|
|
|
|
2022-04-04 19:08:50 +00:00
|
|
|
additionalScrapeConfigs:
|
|
|
|
# This scrapes all services/pods with prometheus.io/scrape annotation:
|
2023-02-28 13:54:50 +00:00
|
|
|
#- job_name: 'smartctl'
|
|
|
|
# scrape_interval: 60s
|
|
|
|
# static_configs:
|
|
|
|
# - targets: ['127.0.0.1:9902']
|
2023-03-02 13:55:26 +00:00
|
|
|
|
2023-12-26 13:11:48 +00:00
|
|
|
- job_name: 'hive-ipmi'
|
2023-03-02 13:55:26 +00:00
|
|
|
scrape_interval: 60s
|
|
|
|
static_configs:
|
2023-12-26 13:11:48 +00:00
|
|
|
- targets: ['192.168.1.111:9290']
|
2023-03-02 13:55:26 +00:00
|
|
|
|
2022-04-04 19:08:50 +00:00
|
|
|
- job_name: 'kubernetes-services'
|
2023-03-29 20:01:51 +00:00
|
|
|
scrape_interval: 120s
|
2022-04-04 19:08:50 +00:00
|
|
|
kubernetes_sd_configs:
|
|
|
|
- role: service
|
|
|
|
relabel_configs:
|
|
|
|
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape]
|
|
|
|
action: keep
|
|
|
|
regex: true
|
|
|
|
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
|
|
|
|
action: replace
|
|
|
|
target_label: __metrics_path__
|
|
|
|
regex: (.+)
|
|
|
|
- source_labels: [__address__, __meta_kubernetes_service_annotation_prometheus_io_port]
|
|
|
|
action: replace
|
|
|
|
regex: ([^:]+)(?::\d+)?;(\d+)
|
|
|
|
replacement: $1:$2
|
|
|
|
target_label: __address__
|
|
|
|
- action: labelmap
|
|
|
|
regex: __meta_kubernetes_service_label_(.+)
|
|
|
|
- source_labels: [__meta_kubernetes_namespace]
|
|
|
|
action: replace
|
|
|
|
target_label: kubernetes_namespace
|
|
|
|
- source_labels: [__meta_kubernetes_service_name]
|
|
|
|
action: replace
|
|
|
|
target_label: kubernetes_service_name
|
|
|
|
|
|
|
|
- job_name: 'kubernetes-pods'
|
2023-03-29 20:01:51 +00:00
|
|
|
scrape_interval: 120s
|
2022-04-04 19:08:50 +00:00
|
|
|
kubernetes_sd_configs:
|
|
|
|
- role: pod
|
|
|
|
relabel_configs:
|
|
|
|
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
|
|
|
|
action: keep
|
|
|
|
regex: true
|
|
|
|
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
|
|
|
|
action: replace
|
|
|
|
target_label: __metrics_path__
|
|
|
|
regex: (.+)
|
|
|
|
- source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
|
|
|
|
action: replace
|
|
|
|
regex: ([^:]+)(?::\d+)?;(\d+)
|
|
|
|
replacement: $1:$2
|
|
|
|
target_label: __address__
|
|
|
|
- action: labelmap
|
|
|
|
regex: __meta_kubernetes_pod_label_(.+)
|
|
|
|
- source_labels: [__meta_kubernetes_namespace]
|
|
|
|
action: replace
|
|
|
|
target_label: kubernetes_namespace
|
|
|
|
- source_labels: [__meta_kubernetes_pod_name]
|
|
|
|
action: replace
|
|
|
|
target_label: kubernetes_pod_name
|