hive-apps/projects/grafana/values/kube-prometheus-stack.yaml

167 lines
4 KiB
YAML
Raw Normal View History

crds:
enabled: true
alertmanager:
ingress:
enabled: false
grafana:
enabled: true
namespaceOverride: "grafana"
image:
repository: grafana/grafana
tag: 10.4.5
persistence:
enabled: true
2022-12-30 19:38:01 +00:00
type: pvc
storageClassName: local-path
2022-12-30 19:38:01 +00:00
accessModes:
- ReadWriteOnce
size: 10Gi
defaultDashboardsTimezone: utc
ingress:
enabled: true
ingressClassName: ingress-internal
annotations:
cert-manager.io/cluster-issuer: vault-issuer
hosts:
- grafana.dc
path: /
tls:
- secretName: grafana-general-tls
hosts:
- grafana.dc
admin:
existingSecret: "grafana"
defaultRules:
create: false
kubeDns:
enabled: false
kubeEtcd:
enabled: false
kubeScheduler:
enabled: false
kubeProxy:
enabled: false
kubeStateMetrics:
enabled: true
nodeExporter:
enabled: true
prometheusOperator:
enabled: true
kubeletService:
enabled: true
prometheus:
enabled: true
strategy:
type: Recreate
ingress:
enabled: false
prometheusSpec:
scrapeInterval: "60s"
retention: 90d
replicas: 1
2024-06-08 17:03:19 +00:00
serviceMonitorSelectorNilUsesHelmValues: false
serviceMonitorSelector: {}
serviceMonitorNamespaceSelector: {}
storageSpec:
volumeClaimTemplate:
spec:
storageClassName: ssd
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 50Gi
additionalScrapeConfigs:
# This scrapes all services/pods with prometheus.io/scrape annotation:
#- job_name: 'smartctl'
# scrape_interval: 60s
# static_configs:
# - targets: ['127.0.0.1:9902']
2023-03-02 13:55:26 +00:00
- job_name: 'openwrt-router'
scrape_interval: 60s
static_configs:
- targets: ['192.168.1.1:9100']
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
2024-05-13 07:55:32 +00:00
- job_name: 'esplant'
scrape_interval: 60s
static_configs:
- targets: ['esplant.lan:80']
- job_name: 'kubernetes-services'
scrape_interval: 120s
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'
scrape_interval: 120s
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