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

Prometheus metrics endpoint missing Content-Type

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 7.2.2
    • None
    • Untriaged
    • 0
    • Unknown

    Description

      According to the https://prometheus.io/docs/instrumenting/exposition_formats/#text-based-format HTTP responses are expected to contain Content-Type header with value 

      text/plain; version=0.0.4

       (A missing version value will lead to a fall-back to the most recent text format version.)

       

       

      I noticed this issue when trying to setup a scraper in InfluxDB 2 which expects the responses to contain the header as defined by the spec.

       

      2023-11-01 09:58:50 ts=2023-11-01T07:58:50.778448Z lvl=error msg="Unable to gather" log_id=0l4KZHl0000 service=scraper scraper-name=Couchbase error="mime: no media type" 

       

      Response headers sent by Couchbase /metrics endpoint:

      HTTP/1.1 200 OK
      Date: Wed, 01 Nov 2023 07:55:04 GMT
      Server: MochiWeb/1.0 (Any of you quaids got a smint?)
      Transfer-Encoding: chunked 

       

       

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mp Mico Piira
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty