Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-56327

[CBBS] Auto generate metric_metadata.json

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • Morpheus
    • 7.2.0
    • tools
    • None
    • 0

    Description

      What is the problem?
      Currently our metric_metadata.json - used to describe the prometheus metrics we expose - is handwritten. This was done in the interests of time. It leaves us open to forgetting to update it if more metrics are added however.

      What is the solution?
      Autogenerate this file. The metrics definitions in statistician/statistician.go already have most of the information we need. It should be possible to write a Go script that imports them and generates the file.

      Attachments

        Issue Links

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

          Activity

            People

              Matt.Hall Matt Hall
              Matt.Hall Matt Hall
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty