mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 19:48:50 +03:00
85408d10b7
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
43 lines
1.3 KiB
JSON
43 lines
1.3 KiB
JSON
{
|
|
"name": "@tryghost/prometheus-metrics",
|
|
"version": "0.0.0",
|
|
"repository": "https://github.com/TryGhost/Ghost/tree/main/packages/prometheus-metrics",
|
|
"author": "Ghost Foundation",
|
|
"private": true,
|
|
"main": "build/index.js",
|
|
"types": "build/index.d.ts",
|
|
"scripts": {
|
|
"dev": "tsc --watch --preserveWatchOutput --sourceMap",
|
|
"build": "yarn build:ts",
|
|
"build:ts": "tsc",
|
|
"prepare": "tsc",
|
|
"test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --90 --reporter text --reporter cobertura mocha -r ts-node/register './test/**/*.test.ts'",
|
|
"test": "yarn test:types && yarn test:unit",
|
|
"test:types": "tsc --noEmit",
|
|
"lint:code": "eslint src/ --ext .ts --cache",
|
|
"lint": "yarn lint:code && yarn lint:test",
|
|
"lint:test": "eslint -c test/.eslintrc.js test/ --ext .ts --cache"
|
|
},
|
|
"files": [
|
|
"build"
|
|
],
|
|
"devDependencies": {
|
|
"@types/express": "4.17.21",
|
|
"@types/stoppable": "1.1.0",
|
|
"c8": "10.1.2",
|
|
"knex": "2.4.2",
|
|
"mocha": "10.7.3",
|
|
"nock": "13.5.5",
|
|
"sinon": "19.0.2",
|
|
"supertest": "7.0.0",
|
|
"ts-node": "10.9.2",
|
|
"typescript": "5.6.2"
|
|
},
|
|
"dependencies": {
|
|
"@tryghost/logging": "2.4.19",
|
|
"express": "4.21.1",
|
|
"prom-client": "15.1.3",
|
|
"stoppable": "1.1.0"
|
|
}
|
|
}
|