mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
6d9ea91634
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 |
||
---|---|---|
.. | ||
.eslintrc.js | ||
metrics-server.test.ts | ||
prometheus-client.test.ts |