Add metrics endpoint for prometheus monitoring - #236
Conversation
|
the /diagnostics/ endpoint returns some of the same information: |
|
do we need both? |
|
we were looking at the growth of sessions back then - every hit from a bot would result in a session, and there was a bug in CherryPy in the session management code that we helped to fix. |
|
We either need both or we just need
|
|
let's remove diagnostics, and replace its documentation with that for /metrics/ |
Sounds good. I can get to that on Monday. |
|
New |
|
could you avoid force pushing changes to a branch ready for review? It's easier to review if I can see the incremental changes. and not have to force push myself. |
I can as long as you let me rebase and selectively squash commits before you merge a PR together so that the commits are coherant. |
Add a very lightweight endpoint for monitoring with prometheus. This uses the default
/metrics/endpoint used by prometheus exporters.This PR renames the mis-named
ConnectionPool.poolvariable toConnectionPool.enginesince that's actually what it contains. This variables does not appear to be used anywhere outside of the class that I can tell, except for @zachjesus's incoming PR #232Example output: