Annotate Grafana so Prometheus scrapes metrics

This commit is contained in:
Dalton Hubble 2018-05-30 22:37:47 -07:00
parent 32a9a83190
commit d32e6797ae
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,7 @@ Notable changes between versions.
#### Addons #### Addons
* Add Prometheus liveness and readiness probes * Add Prometheus liveness and readiness probes
* Annotate Grafana service so Prometheus scrapes metrics
## v1.10.3 ## v1.10.3

View File

@ -3,6 +3,9 @@ kind: Service
metadata: metadata:
name: grafana name: grafana
namespace: monitoring namespace: monitoring
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '8080'
spec: spec:
type: ClusterIP type: ClusterIP
selector: selector: