Skip to content

Add Kubernetes env vars to prometheus startup

Ben Kochie requested to merge bjk/prom_k8s_env into master

Prometheus requires two ENV vars from Kubernetes for service discovery.

  • KUBERNETES_SERVICE_HOST
  • KUBERNETES_SERVICE_PORT

It is harmless if these vars are missing when running outside of Kubernetes.

Merge request reports