Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-2281

Add Prometheus annotations to server pod

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.3.0
    • None
    • operator
    • None
    • 1

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              patrick.stephens Patrick Stephens (Inactive)
              patrick.stephens Patrick Stephens (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty