Prometheus tag label feature is broken

Opening here since I'm not really sure where to open it on GH.

The tag label feature of Prometheus is awesome but broken in some specific cases.

The feature allows to split a tag on ":" but I suspect the splitting is done by taking only the first two elements from an execution of split(':'). That won't work if multiple ":" are contained in the string.

For instance, if we pass the tag url:https://foo.com, the resulting Prometheus label-value would be url:https, which is clearly wrong.

The string should be split only on the first occurrence of ":" so that label values such as urls can be correctly exposed by the Prometheus endpoint.

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board

πŸ’‘ Feature Request

Tags

Integrations

ETA
Sep 19, 2023
Date

Over 2 years ago

Author

BaCaRoZzo

Subscribe to post

Get notified by email when there are changes.