Ghost/ghost/prometheus-metrics
Chris Raible a27ce3dfac Added connection pool metrics to prometheus client (#21576)
ref
https://linear.app/ghost/issue/ENG-1592/start-monitoring-connection-pool-utilization-in-ghost

- This commit adds prometheus metrics to the connection pool so we can
start to track connection pool utilization, number of pending acquires,
and also adds some basic SQL query summary metrics like queries per
minute and query duration percentiles.
- The connection pool has now been theorized to be a main constraint of
Ghost for some time, but it's been challenging to get actual visibility
into the state of the connection pool. With this change, we should be
able to directly observe, monitor and alert on the connection pool.
- Updated grafana version to fix a bug in the query editor that was
fixed in 8.3, even though this is a couple versions ahead of production
2024-11-13 12:09:45 -06:00
..
src Added connection pool metrics to prometheus client (#21576) 2024-11-13 12:09:45 -06:00
test Added connection pool metrics to prometheus client (#21576) 2024-11-13 12:09:45 -06:00
.eslintrc.js Added ability to push prometheus metrics to a pushgateway (#21526) 2024-11-06 16:58:37 -06:00
package.json Added connection pool metrics to prometheus client (#21576) 2024-11-13 12:09:45 -06:00
README.md Added ability to push prometheus metrics to a pushgateway (#21526) 2024-11-06 16:58:37 -06:00
tsconfig.json Added ability to push prometheus metrics to a pushgateway (#21526) 2024-11-06 16:58:37 -06:00

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.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests