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 |
||
---|---|---|
.. | ||
src | ||
test | ||
.eslintrc.js | ||
package.json | ||
README.md | ||
tsconfig.json |
Metrics Server
A standalone server for exporting prometheus metrics from Ghost
Usage
Develop
This is a monorepo package.
Follow the instructions for the top-level repo.
git clone
this repo &cd
into it as usual- Run
yarn
to install top-level dependencies.
Test
yarn lint
run just eslintyarn test
run lint and tests