@tryghost/prometheus-metrics
v5.0.0
Published
Downloads
46,018
Maintainers
Keywords
Readme
Metrics Server
A standalone server for exporting prometheus metrics from Ghost
Purpose
Prometheus metrics integration for exposing Ghost runtime counters, gauges, and histograms.
Usage
Import the metrics client from the package root:
import { PrometheusClient } from '@tryghost/prometheus-metrics';The standalone server is available separately:
import { MetricsServer } from '@tryghost/prometheus-metrics/server';Install Express 4 or 5 in your application when using MetricsServer. Express is
an optional peer dependency and is not loaded by the package root.
Develop
This is a monorepo package.
Follow the instructions for the top-level repo.
git clonethis repo &cdinto it as usual- Run
pnpm installto install top-level dependencies.
Test
pnpm lintruns oxlintpnpm testruns lint and tests
