# Grafana k8s-monitoring Helm chart values (v1.x format)
# Chart: grafana/k8s-monitoring --version 1.6.50
# Deploys: Alloy (DaemonSet) + node-exporter + kube-state-metrics
#
# Install:
#   helm repo add grafana https://grafana.github.io/helm-charts
#   PUSH_TOKEN=$(cd infra/live/production/cockpit && terragrunt output -raw push_token)
#   helm install k8s-monitoring grafana/k8s-monitoring \
#     --namespace monitoring --version 1.6.50 \
#     -f infra/k8s/monitoring/alloy-values.yaml \
#     --set "externalServices.prometheus.extraHeaders.X-Token=${PUSH_TOKEN}"

cluster:
  name: foxhunt

externalServices:
  prometheus:
    host: "https://d8cd4c5d-6d3b-4258-9f92-2ad0eaa36ba0.metrics.cockpit.fr-par.scw.cloud"
    writeEndpoint: "/api/v1/push"
    authMode: none
    # X-Token header passed via --set to keep secret out of git
  # Loki host required by chart validation even with logs disabled
  loki:
    host: "https://noop.localhost"
    authMode: none

metrics:
  enabled: true
  cost:
    enabled: false
  node-exporter:
    enabled: true
  kube-state-metrics:
    enabled: true
  kubelet:
    enabled: true
  cadvisor:
    enabled: true
  apiserver:
    enabled: true

# Alloy DaemonSet — runs on every node
alloy-metrics:
  alloy:
    resources:
      requests:
        cpu: 50m
        memory: 128Mi
      limits:
        cpu: 200m
        memory: 256Mi

# node-exporter — host metrics (CPU, memory, disk, network)
prometheus-node-exporter:
  resources:
    requests:
      cpu: 25m
      memory: 32Mi
    limits:
      cpu: 100m
      memory: 64Mi

# kube-state-metrics — K8s object state
kube-state-metrics:
  resources:
    requests:
      cpu: 25m
      memory: 64Mi
    limits:
      cpu: 100m
      memory: 128Mi
  # Scheduled on gitlab node (GP1-XS 16GB) — services (DEV1-M 4GB) too small

# Disable components we don't need
logs:
  enabled: false
  cluster_events:
    enabled: false
traces:
  enabled: false
opencost:
  enabled: false

# Disable log/event collectors
alloy-logs:
  enabled: false
alloy-events:
  enabled: false
