Skip to content

Commit

Permalink
examples: update monitoring and grafana example (#1843)
Browse files Browse the repository at this point in the history
  • Loading branch information
nexustar authored Apr 14, 2022
1 parent 58f86e8 commit d6ab2cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion embed/examples/cluster/topology.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ monitoring_servers:
# data_dir: "/tidb-data/prometheus-8249"
# # Prometheus log file storage directory.
# log_dir: "/tidb-deploy/prometheus-8249/log"

# prometheus rule dir on TiUP machine
# rule_dir: /home/tidb/prometheus_rule
# # Server configs are used to specify the configuration of Grafana Servers.
grafana_servers:
# # The ip address of the Grafana Server.
Expand All @@ -303,6 +304,10 @@ grafana_servers:
# port: 3000
# # Grafana deployment file, startup script, configuration file storage directory.
# deploy_dir: /tidb-deploy/grafana-3000
# grafana dashboard dir on TiUP machine
# dashboard_dir: /home/tidb/dashboards
# config:
# log.file.level: warning

# # Server configs are used to specify the configuration of Alertmanager Servers.
alertmanager_servers:
Expand Down
4 changes: 4 additions & 0 deletions embed/examples/dm/topology.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,15 @@ monitoring_servers:
# deploy_dir: "/tidb-deploy/prometheus-8249"
# data_dir: "/tidb-data/prometheus-8249"
# log_dir: "/tidb-deploy/prometheus-8249/log"
# prometheus rule dir on TiUP machine
# rule_dir: /home/tidb/prometheus_rule

grafana_servers:
- host: 10.0.1.14
# port: 3000
# deploy_dir: /tidb-deploy/grafana-3000
# grafana dashboard dir on TiUP machine
# dashboard_dir: /home/tidb/dashboards
# config: # Enable this part if you want to use WebUI, make sure tiup dm -v newer than v1.9.0.
# auth.anonymous.enabled: true
# security.allow_embedding: true
Expand Down

0 comments on commit d6ab2cc

Please sign in to comment.