0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/.github
Chris Raible 431719080e
Added prometheus metric for time to acquire connection (#21628)
ref
https://linear.app/ghost/issue/ENG-1769/improve-pool-utilization-metric

- Currently the connection pool metrics are all point in time metrics,
and with a scrape interval of 15s this doesn't tell us a whole lot about
what's happening in the pool.
- This commit adds a Summary metric to track the elapsed time each
transaction has to wait to acquire a connection from the pool, which
should be a good indication of contention in the pool.
- Also moved the call to `prometheusClient.instrumentKnex` to after `initCore` in the boot process, because the metric depends on event listeners on `knex.client.pool`, and the pool gets destroyed and recreated in `initCore`, which removes the listeners
2024-11-14 21:14:40 -08:00
..
actions/restore-cache Update actions/cache action to v4 2024-04-18 12:36:07 +02:00
hooks Improved pre-commit hook to automatically remove submodules (#21222) 2024-10-12 03:40:31 -07:00
ISSUE_TEMPLATE
scripts Added prometheus metric for time to acquire connection (#21628) 2024-11-14 21:14:40 -08:00
workflows Bumped Node versions in CI 2024-10-23 13:23:35 +02:00
CODE_OF_CONDUCT.md Added contributor code of conduct 2023-10-18 12:10:05 +02:00
codecov.yml Updated workflow for code coverage 2023-07-06 09:24:45 +02:00
CONTRIBUTING.md Added translation gitmoji (#21226) 2024-10-04 16:28:31 +00:00
FUNDING.yml
PULL_REQUEST_TEMPLATE.md Removed GitHub Copilot for PRs templating value 2023-11-20 11:43:58 +01:00
SUPPORT.md