Page MenuHomePhabricator

[toolsdb] Add db-level and user-level monitoring
Open, Needs TriagePublic

Description

We currently have two Grafana dashboards for ToolsDB:

They include many useful metrics, but they don't include any metrics that are differentiating by ToolsDB users, or ToolsDB database (e.g. number of queries per user or per database). This would be very helpful when debugging spikes in the usage of ToolsDB, to identify which users or tools are responsible for the spike.

Some per-user and per-database metrics can be added to Prometheus by enabling the Performance Schema in MariaDB and in the mysqld_exporter.