Enable Shards for TidbMonitor

    TidbMonitor collects monitoring data for a single TiDB cluster or multiple TiDB clusters. When the amount of monitoring data is large, the computing capacity of one TidbMonitor might hit a bottleneck. In this case, it is recommended to use shards of Prometheus Modulus. This feature performs on __address__ to divide the monitoring data of multiple targets (Targets) into multiple TidbMonitor Pods.

    Enable shards

    To enable shards for TidbMonitor, you need to specify the shards field. For example:

    For details on the configuration, refer to shards example.