Skip to content

Commit 83aa148

Browse files
authored
support tici metrics (#991)
1 parent 02c592e commit 83aa148

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

cmd/init.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ sed -i 's/Test-Cluster-TiCDC-Summary/'$TIDB_CLUSTER_NAME'-TiCDC/g' $GF_PROVISION
100100
cp /tmp/ticdc_new_arch.json $GF_PROVISIONING_PATH/dashboards
101101
sed -i 's/Test-Cluster-TiCDC-New-Arch/'$TIDB_CLUSTER_NAME'-TiCDC/g' $GF_PROVISIONING_PATH/dashboards/ticdc_new_arch.json
102102

103+
# TiCI dashboard
104+
cp /tmp/tici_meta.json $GF_PROVISIONING_PATH/dashboards
105+
sed -i 's/Test-Cluster-TiCI-Meta/Cluster-TiCI-Meta/g' $GF_PROVISIONING_PATH/dashboards/tici_meta.json
106+
cp /tmp/tici_worker.json $GF_PROVISIONING_PATH/dashboards
107+
sed -i 's/Test-Cluster-TiCI-Worker/Cluster-TiCI-Worker/g' $GF_PROVISIONING_PATH/dashboards/tici_worker.json
108+
cp /tmp/tici_reader.json $GF_PROVISIONING_PATH/dashboards
109+
sed -i 's/Test-Cluster-TiCI-Reader/Cluster-TiCI-Reader/g' $GF_PROVISIONING_PATH/dashboards/tici_reader.json
110+
103111
# TiKV-CDC dashboard
104112
cp /tmp/tikv-cdc.json $GF_PROVISIONING_PATH/dashboards
105113
sed -i 's/Test-Cluster-TiKV-CDC/'$TIDB_CLUSTER_NAME'-TiKV-CDC/g' $GF_PROVISIONING_PATH/dashboards/tikv-cdc.json

monitoring.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ components:
2222
- repo_name: "ticdc"
2323
monitor_path: "metrics/grafana"
2424
# rule_path: "" TODO: This repo is a new arch of ticdc, we will add this rule_path later
25+
- repo_name: "tici"
26+
owner: "pingcap-inc"
27+
monitor_path: "grafana"
2528
- repo_name: "tiproxy"
2629
monitor_path: "pkg/metrics/grafana"
2730
rule_path: "pkg/metrics/alertmanager"

pkg/operator/dashboards.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ var (
4343
"DM-Monitor-Standard.json": "Test-Cluster-DM-Standard",
4444
"DM-Monitor-Professional.json": "Test-Cluster-DM-Professional",
4545
"tiproxy_summary.json": "Test-Cluster-TiProxy-Summary",
46+
"tici_meta.json": "Test-Cluster-TiCI-Meta",
47+
"tici_worker.json": "Test-Cluster-TiCI-Worker",
48+
"tici_reader.json": "Test-Cluster-TiCI-Reader",
4649
}
4750
)
4851

0 commit comments

Comments
 (0)