-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tidb dashboard 监控指标采集问题 #5548
Comments
请问这个表达式是否是代码写死的? 如果不是写死的,能否通过数据库手动改正? 查阅官方文档,没发现修改的方式。 |
This is caused by the You can try to use ref https://github.com/pingcap/tidb-operator/blob/v1.5.2/examples/advanced/tidb-monitor.yaml#L192-L197 |
tidb-dashboard 这个是写死了在 ts 代码里吗?我使用 外部的 |
I mean, use an external ConfigMap to overwite the metrics labels (job_name) in Prometheus so that they can match the hardcoded PromQL in tidb-dashboard. |
我通过 修改了旧的 prometheus ,增加了 job_name: tidb
ok, 现在已经有数据了。但是部分指标名称已经更换了 例如 QPS 数据 tidb_executor_statement_total -> tidb_executor_statement_db_total |
What's the metrics name of getting from TiDB Pod's |
could you open an issue in https://github.com/pingcap/tidb |
@soulmz Both of them should exist, https://github.com/pingcap/tidb/blob/v7.5.0/pkg/metrics/executor.go#L55-L69 |
Bug Report
What version of Kubernetes are you using?
k8s v1.27.8
tidb-cluster 7.5.0
What version of TiDB Operator are you using?
TiDB Operator Version: version.Info{GitVersion:"v1.5.2", GitCommit:"456a0273f67ac61212da78956f49f0a4a07e21d8", GitTreeState:"clean", BuildDate:"2024-01-19T03:50:22Z", GoVersion:"go1.21.5", Compiler:"gc", Platform:"linux/amd64"}
What storage classes exist in the Kubernetes cluster and what are used for PD/TiKV pods?
openEBS localPV
What's the status of the TiDB cluster pods?
What did you do?
What did you expect to see?
dashboard 有关 tidb 组件监控数据存在问题。
这个指标有问题,
rate(process_cpu_seconds_total{job="tidb"}[120s])
通过 prometheus 查看,发现 job 不匹配。
dashboard grafana url 链接地址错误。
部分监控指标不显示,初步排查,发现都是 promQL 表达式有问题。
What did you see instead?
The text was updated successfully, but these errors were encountered: