forked from TryGhost/Ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added utilities for creating custom prometheus metrics (TryGhost#21614)
ref https://linear.app/ghost/issue/ENG-1771/add-utility-functions-to-easily-create-custom-metrics - Currently adding custom metrics to our prometheus client requires you to directly access the `prometheusClient.client` to create the metrics - This isn't super convenient, as you then have to either keep the metric in a local variable, or manually get it from the `prometheusClient.client.register` - This commit exposes some utility functions for registering metrics on the `prometheusClient` class, and for retrieving metrics that have already been registered
- Loading branch information
Showing
2 changed files
with
545 additions
and
5 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
Oops, something went wrong.