Skip to content

Commit b010a25

Browse files
authored
chore: add dashboard for VictoriaTraces single-node and cluster. add alerting to docker deployment. (#34)
* feature: [dashboard] add dashboard for vt single and cluster * feature: [alert] update alerting rules and docker compose for traces
1 parent c10256a commit b010a25

File tree

13 files changed

+16364
-0
lines changed

13 files changed

+16364
-0
lines changed

dashboards/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
dashboard-copy:
2+
echo "" > dashboards/vm/${SRC}
3+
cat dashboards/${SRC} >> dashboards/vm/${SRC}
4+
sed -i='.tmp' 's/prometheus/victoriametrics-metrics-datasource/g' dashboards/vm/${SRC}
5+
sed -i='.tmp' 's/Prometheus/VictoriaMetrics/g' dashboards/vm/${SRC}
6+
sed -i='.tmp' 's/${D_UID}/${D_UID}_vm/g' dashboards/vm/${SRC}
7+
sed -i='.tmp' 's/"title": "${TITLE}"/"title": "${TITLE} (VM)"/g' dashboards/vm/${SRC}
8+
rm -rf dashboards/vm/*.tmp
29

310
# Copies listed dashboards to vm/* but changes the datasource type from Prometheus to VictoriaMetrics.
411
# The command should be called before committing changes to dashboards/* files.
512
dashboards-sync:
13+
SRC=victoriatraces.json D_UID=ce764d5681beof TITLE="VictoriaTraces" $(MAKE) dashboard-copy
14+
SRC=victoriatraces-cluster.json D_UID=feej4p6n3brpcb TITLE="VictoriaTraces - cluster" $(MAKE) dashboard-copy

0 commit comments

Comments
 (0)