services.prometheus.scrapeConfigs.*.kubernetes_sd_configs.*.api_server
NixOS option
The API server addresses. If left empty, Prometheus is assumed to run inside of the cluster and will discover API servers automatically and use the pod’s CA certificate and bearer token file at /var/run/secrets/kubernetes.io/serviceaccount/.
type: null or stringDefault
declared in: nixos/modules/services/monitoring/prometheus/default.nixView source on NixOS/nixpkgs →null