feat(alloy): Add podMonitor and serviceMonitor scrapes

This commit is contained in:
Peter 2026-01-31 18:52:22 +01:00
parent e8b40da5e8
commit 8e70ef16b8
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg
2 changed files with 12 additions and 0 deletions

View file

@ -47,6 +47,14 @@ data:
role = "pod"
}
prometheus.operator.servicemonitors "monitored_services" {
forward_to = [prometheus.remote_write.default.receiver]
}
prometheus.operator.podmonitors "monitored_pods" {
forward_to = [prometheus.remote_write.default.receiver]
}
discovery.relabel "kubernetes_apiservers" {
targets = discovery.kubernetes.kubernetes_apiservers.targets

View file

@ -16,3 +16,7 @@ helmCharts:
repo: https://prometheus-community.github.io/helm-charts
version: "7.0.0"
releaseName: kube-state-metrics
- name: prometheus-operator-crds
repo: https://prometheus-community.github.io/helm-charts
version: "26.0.1"
releaseName: prometheus-operator-crds