【TiDB 版本】 2.1.6
【集群节点分布】 3台机器,每台机器部署1个TiDB、1个PD、2个TiKV、1个pump,第2台机器多部署1个drainer。
【问题】修改cluster-name后(将test-cluster改为refined-cluster),grafana界面仍然保留test-cluster相关dashboard。请问如何【脚本】删除这些dashboard?
【ps】生产环境有约30套TiDB集群,一个一个界面删除dashboard效率太低,想尝试脚本删除。
【TiDB 版本】 2.1.6
【集群节点分布】 3台机器,每台机器部署1个TiDB、1个PD、2个TiKV、1个pump,第2台机器多部署1个drainer。
【问题】修改cluster-name后(将test-cluster改为refined-cluster),grafana界面仍然保留test-cluster相关dashboard。请问如何【脚本】删除这些dashboard?
【ps】生产环境有约30套TiDB集群,一个一个界面删除dashboard效率太低,想尝试脚本删除。
根据你给的链接的提示:
尝试删除Test-Cluster-Blackbox_exporter的dashboard,该dashboard的url如下图所示:
在集群首节点执行如下命令:
curl -X DELETE -H ‘Content-Type:application/json’ “http://193.4.12.1:3000/api/dashboards/test-cluster-blackbox_exporter”
返回{“message”: “Not found”}
请问,该如何解决?贵公司有相关成功的经验可以分享吗?谢谢!
目前这快经验较少,建议寻求一下 Prometheus 社区