How to monitor CodiMD?

What are the monitoring hooks used to get the data in the graphs for this post? (More generally, can you point me to where I can learn more about performance and statistics monitoring for any instances I run. I’d like to be able to answer questions like note creation rate, but haven’t found the right toeholds).

We use https://demo.codimd.org/status which provides you with this info.
The distinct keyword in values tells you about connections from unique source addresses.

Of course, you can do this with any CodiMD instance.

Thanks. From this, I knew to go read lib/routes.js.
Is there anything in the docs that point to pages like /status, /config, or even /me ?
And are there any other special points for getting info / doing admin I should read about?