-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
{summary,histogram}: properly addTags to empty labels set
Metric name with explicitly set empty labels set is valid syntax, for example: `metric_name{}`. This case works fine for all metric types except histogram and summary. Since it adds own tags via addTag function. addTag function incorrectly handles empty labels set and adds extra comma: `metric_name{,quantile="0.1"}`. It violites prometheus text exposition format. This commit adds extra check for addTag function and fixes this issue. Related issue: #78 Signed-off-by: f41gh7 <[email protected]>
- Loading branch information
Showing
3 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters