DO NOT MERGE: diagnostic package to debug knex issues#2441
Conversation
|
knex uses https://github.com/vincit/tarn.js/ under the covers to manage connection pools. However, resources can only be created up until the pre-defined maximum number of connections. We can use this value, and the number of in-use connections, to calculate the remaining capacity of the connection pool. This would provide a more representable value over the number of free connections. |
…e modified in container
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
|
Refer to #2443 |



Description & motivation
The prometheus metrics from knex are showing incorrect values. This PR provides a package and docker compose stack to diagnose and debug the issues.
Prerequisites
Instructions
cd packages/knex-metrics-debuggeryarn testadmin, password isgrafana.localhost:5432, databasespeckle, userspeckle, passwordspeckleChanges:
To-do before merge:
Screenshots:
Validation of changes:
Checklist:
References