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

Metrics reporting: escape " in label values

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.0.0, 7.1.0
    • 7.1.0
    • ns_server
    • Untriaged
    • 1
    • Unknown

    Description

      According to the documentation: "Label values may contain any Unicode characters.", but the doc is missing the fact that the double quote character can't be used inside the label value otherwise it will be impossible to find the end of the string. Seems like those characters must be escaped in order to be properly parsed by prometheus.

      Attachments

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

        Activity

          timofey.barmin Timofey Barmin created issue -
          timofey.barmin Timofey Barmin made changes -
          Field Original Value New Value
          Description According to the [documentation|https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels]: "Label values may contain any Unicode characters."
          But we forgot that they can't contain double quote characters, that need to be escaped in order to be properly parsed by prometheus.
          According to the [documentation|https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels]: "Label values may contain any Unicode characters."
          But we forgot that they can't contain double quote characters. They must be escaped in order to be properly parsed by prometheus.
          timofey.barmin Timofey Barmin made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Balakumaran.Gopal Balakumaran Gopal made changes -
          Labels request-dev-verify
          timofey.barmin Timofey Barmin made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          timofey.barmin Timofey Barmin made changes -
          Description According to the [documentation|https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels]: "Label values may contain any Unicode characters."
          But we forgot that they can't contain double quote characters. They must be escaped in order to be properly parsed by prometheus.
          According to the [documentation|https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels]: "Label values may contain any Unicode characters.", but the doc is missing the fact that the double quote character can't be used inside the label value otherwise it will be impossible to find the end of the string. Seems like those characters must be escaped in order to be properly parsed by prometheus.
          marks.polakovs Marks Polakovs made changes -
          Link This issue causes CBSE-11529 [ CBSE-11529 ]

          People

            timofey.barmin Timofey Barmin
            timofey.barmin Timofey Barmin
            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