Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Add ability to prefix metrics with string #9

Open
andheiberg-gelato opened this issue Oct 4, 2019 · 0 comments
Open

Add ability to prefix metrics with string #9

andheiberg-gelato opened this issue Oct 4, 2019 · 0 comments

Comments

@andheiberg-gelato
Copy link

I believe it's a fairly common use-case to prefix your services metrics with a identifiable string instead of relying fully on labels. The main benefit I'm told is the ease of discovering what metrics are available for a service.

The extension is a fairly convenient place to do this https://github.com/tweedegolf/prometheus-bundle/blob/master/src/DependencyInjection/TweedeGolfPrometheusExtension.php#L39

Else https://github.com/tweedegolf/prometheus-client/blob/master/src/Validator.php#L72

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant