# Introduction to `TiDB` Monitoring and Alerting Framework

__*TiDB monitoring system*__
__*TiDB Grafana architecture*__

![`smart`](./student-guide/diagram/DatabaseMonitoringSystem_aa_001_20220621.png)

-------------------------------------------------------------------------------
The TiDB monitoring framework adopts two open source projects: `Prometheus` and `Grafana`. `TiDB` uses `Prometheus` to store the monitoring and performance metrics and `Grafana` to visualize these metrics.

`Prometheus` pulls the data that needs to be monitored from the monitored TiDB, TiKV and PD instances, and store in the Prometheus component's time series database.

When the time series data exceeds certain thresholds, the `Alert Manager` then triggers the alarms such as `Email`, `SMS`, `Webhook` or `HTTP POST` interfaces.

Each above mentioned group has multiple panel labels of monitoring metrics, and each panel contains detailed information of multiple monitoring metrics.










