From d32e6797ae6157f178fe9badebc0e9085d3bf476 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Wed, 30 May 2018 22:37:47 -0700 Subject: [PATCH] Annotate Grafana so Prometheus scrapes metrics --- CHANGES.md | 1 + addons/grafana/service.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 73a68006..2c308027 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -9,6 +9,7 @@ Notable changes between versions. #### Addons * Add Prometheus liveness and readiness probes +* Annotate Grafana service so Prometheus scrapes metrics ## v1.10.3 diff --git a/addons/grafana/service.yaml b/addons/grafana/service.yaml index 1679a3b0..8f9a871d 100644 --- a/addons/grafana/service.yaml +++ b/addons/grafana/service.yaml @@ -3,6 +3,9 @@ kind: Service metadata: name: grafana namespace: monitoring + annotations: + prometheus.io/scrape: 'true' + prometheus.io/port: '8080' spec: type: ClusterIP selector: