Description
We should add the standard annotations to indicate which port to scrape for Prometheus: https://github.com/helm/charts/tree/master/stable/prometheus#scraping-pod-metrics-via-annotations
metadata:
|
annotations:
|
prometheus.io/scrape: "true" |
prometheus.io/path: /metrics
|
prometheus.io/port: "9091" |
This will allow it to be used with the standard helm charts and Prometheus operator, plus a myriad of other tooling, with minimal effort. We do indicate with the exporter to use the helm chart so we should make sure it actually works.
Attachments
Issue Links
- relates to
-
K8S-2277 Add `kubectl.kubernetes.io/default-logs-container` annotation to server pods
- Closed
For Gerrit Dashboard: K8S-2281 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
156903,8 | K8S-2281: Prometheus annotation support | master | couchbase-operator | Status: MERGED | +2 | +1 |
157577,2 | K8S-2281: Add operator annotations for prometheus | master | couchbase-operator | Status: MERGED | +2 | +1 |