kube-prometheus-stack
Configuration
Secret prometheus-prometheus-stack-kube-prom-prometheus
: Gzipped main prometheus config prometheus.yaml.gz
kubectl-view_secret -n oas prometheus-prometheus-stack-kube-prom-prometheus | gunzip |less
This prometheus.yaml
Ends up in prometheus pod under /etc/prometheus/config_out/prometheus.env.yaml
see it with:
kc -n oas exec -it prometheus-prometheus-stack-kube-prom-prometheus-0 -c prometheus -- cat /etc/prometheus/config_out/prometheus.env.yaml
- Configmap
prometheus-prometheus-stack-kube-prom-prometheus-rulefiles-0
: Rules and alerts
Runbooks
Scrape target manually
i.e. for cert-manager:
kubectl -n cert-manager port-forward cert-manager-5d9d756cf8-qg64h 9402
curl localhost:9402/metrics