pingcap / tidb-dashboard

A Web UI for monitoring, diagnosing and managing the TiDB cluster.
https://docs.pingcap.com/tidb/stable/dashboard-intro
Apache License 2.0
173 stars 126 forks source link

remove hardcoded job labels in prometheus queries #1688

Open ztzxt opened 3 weeks ago

ztzxt commented 3 weeks ago

Feature Request

Is your feature request related to a problem? Please describe:

We deployed TiDb via tidb-operator. We are also configuring PodMonitor for prometheus-operator for external prometheus. When we do this, some of the panels in the dashboard are missing. This is due to hard-coded job labels in the prometheus queries such as this. If there were a way to configure these labels or some prefix to them, whole dashboard would work with prometheus-operator.

Describe the feature you'd like:

Ability to overwrite job label in Prometheus queries

Describe alternatives you've considered:

This is how the dashboard looks now for us:

image