Skip to content

remove some useless metrics #59815

@XuHuaiyu

Description

@XuHuaiyu

Enhancement

In the TiDB server, there are metrics that observe the requests sent from TiDB to TiKV. Under scenarios where there are many cluster nodes and high request load, the data volume for these metrics can become very large. We can remove some unused metrics or optimize them to reduce the data volume

  • Remove tidb_tikvclient_cop_duration_seconds_bucket/_sum/_count.
    Update the corresponding metrics source for the monitoring panel TiDB -> Distsql -> Coprocessor Seconds 999 to tidb_tikvclient_request_seconds_bucket. tidb/59845 client-go/1602
  • Remove tidb_tikvclient_request_time_counter.
    The tidb_tikvclient_request_time_counter is replaced by tidb_tikvclient_source_request_seconds_sum in client-go/1556, we could abort the collection of tidb_tikvclient_source_request_seconds_count in the Prometheus configuration.
  • Remove tidb_tikvclient_request_counter. client-go/1556
  • Abort the collection of tidb_tikvclient_batch_requests_sum/_count in the Prometheus configuration. tiup/pull/2523
  • Abort the collection of tidb_tikvclient_batch_pending_requests_sum/_count in the Prometheus configuration. tiup/pull/2523
  • Abort the collection of tidb_tikvclient_source_request_seconds_count in Prometheus configuration. tiup/pull/2523

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-7.5This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.component/observabilitytype/enhancementThe issue or PR belongs to an enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions