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

Metrics endpoint cannot be parsed using prom2json

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 7.1.0
    • 7.0.0
    • ns_server
    • None
    • Triaged
    • 1
    • Unknown

    Description

      I am attempting to compare the output of Couchbase Server 7.0s metrics endpoint to the output from our existing Go Exporter for the Couchbase Autonomous Operator, so we can develop a method for our customers to upgrade to using built in metrics.

      I intended to use prom2json which is an official tool from Prometheus to parse the output of a metrics endpoint into json and then programmatically compare our output to server to identify gaps.

      When executing this tool (using CURL output) i get the following error:

      I've attached the CURL output, as you can either pipe in the data from curl, or you can use prom2json on a specific file or url.

      When i execute the tool against the prom-7.prom output i get the following empty array:

      I've also attached the exporter's output when I use prom2json on it's metrics endpoint.

      Attachments

        1. exporter.json
          310 kB
        2. image-2021-10-08-10-21-43-211.png
          image-2021-10-08-10-21-43-211.png
          68 kB
        3. prom-7.prom
          322 kB
        4. screenshot-1.png
          screenshot-1.png
          41 kB
        5. screenshot-2.png
          screenshot-2.png
          98 kB

        Issue Links

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

          Activity

            People

              timofey.barmin Timofey Barmin
              justin.ashworth Justin Ashworth
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty