Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #547 from pingcap/instance
Browse files Browse the repository at this point in the history
scripts: templating job labels
  • Loading branch information
siddontang authored Sep 27, 2018
2 parents b1053c9 + e3989e6 commit 382cc5a
Show file tree
Hide file tree
Showing 6 changed files with 317 additions and 10,994 deletions.
1 change: 0 additions & 1 deletion migrate_monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@
pd: "{{ cluster_name | title }}-PD"
tidb: "{{ cluster_name | title }}-TiDB"
tikv: "{{ cluster_name | title }}-TiKV"
tikv_instances: "{{ cluster_name | title }}-TiKV-Instances"
binlog: "{{ cluster_name | title }}-Binlog"
overview: "{{ cluster_name | title }}-Overview"
disk_performance: "{{ cluster_name | title }}-Disk-Performance"
Expand Down
9 changes: 4 additions & 5 deletions rolling_update_monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,14 @@
- name: stop alertmanager by supervise
shell: cd {{ deploy_dir }}/scripts && ./stop_alertmanager.sh
when:
- process_supervision == 'supervise'
- process_supervision == 'supervise'
- alertmanager_configure_file.stat.exists == True

- name: stop alertmanager by systemd
systemd: name=alertmanager-{{ alertmanager_port }}.service state=stopped
become: true
when:
- process_supervision == 'systemd'
- process_supervision == 'systemd'
- alertmanager_configure_file.stat.exists == True

- name: wait for alertmanager down
Expand Down Expand Up @@ -292,7 +292,7 @@
- name: stop grafana_collector by supervise
shell: cd {{ deploy_dir }}/scripts && ./stop_{{ item }}.sh
when:
- process_supervision == 'supervise'
- process_supervision == 'supervise'
- grafana_collector_config_file.stat.exists == True
with_items:
- grafana_collector
Expand All @@ -301,7 +301,7 @@
systemd: name=grafana_collector-{{ grafana_collector_port }}.service state=stopped
become: true
when:
- process_supervision == 'systemd'
- process_supervision == 'systemd'
- grafana_collector_config_file.stat.exists == True

- name: wait for grafana_collector down
Expand Down Expand Up @@ -374,7 +374,6 @@
pd: "{{ cluster_name | title }}-PD"
tidb: "{{ cluster_name | title }}-TiDB"
tikv: "{{ cluster_name | title }}-TiKV"
tikv_instances: "{{ cluster_name | title }}-TiKV-Instances"
binlog: "{{ cluster_name | title }}-Binlog"
overview: "{{ cluster_name | title }}-Overview"
disk_performance: "{{ cluster_name | title }}-Disk-Performance"
Expand Down
1 change: 0 additions & 1 deletion scripts/grafana-config-copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"pd" : 'pd.json',
"tidb": 'tidb.json',
"tikv": 'tikv.json',
"tikv_instances": "tikv_instances.json",
"binlog": "binlog.json",
"overview": 'overview.json',
"disk_performance": 'disk_performance.json',
Expand Down
Loading

0 comments on commit 382cc5a

Please sign in to comment.