Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
7.0.0, 7.1.0
-
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
For Gerrit Dashboard: MB-50398 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
168969,2 | MB-50398: Escape double quotes in prometheus label values | master | ns_server | Status: MERGED | +2 | +1 |
Activity
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. |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Labels | request-dev-verify |
Status | Resolved [ 5 ] | Closed [ 6 ] |
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. |
Link | This issue causes CBSE-11529 [ CBSE-11529 ] |
Build couchbase-server-7.1.0-2105 contains ns_server commit ef45ef8 with commit message:
MB-50398: Escape double quotes in prometheus label values