This repository has been archived by the owner on Jul 11, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow adding 'service' label to Prometheus metrics (#269)
* Add support for service label Signed-off-by: Alex Perez-Pujol <alexperez@paradigmadigital.com> * Initialize to none for a more idiomatic approach Signed-off-by: Alex Perez-Pujol <alexperez@paradigmadigital.com> * Make the name_label parameter optional Signed-off-by: Alex Perez-Pujol <alexperez@paradigmadigital.com> * Change label name Signed-off-by: Alex Perez-Pujol <alexperez@paradigmadigital.com> * Add tests Signed-off-by: Alex Perez-Pujol <alexperez@paradigmadigital.com> * DRY Signed-off-by: Yuri Shkuro <ys@uber.com> * Fix readme Signed-off-by: Yuri Shkuro <ys@uber.com> * Delint Signed-off-by: Yuri Shkuro <ys@uber.com> * Bump code coverage Signed-off-by: Yuri Shkuro <ys@uber.com>
- Loading branch information
1 parent
900c509
commit 51d9027
Showing
3 changed files
with
61 additions
and
21 deletions.
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