Skip to content

Commit

Permalink
[scripts] Add prometheus script and cleanup out date scripts. (#3001)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolestar authored Nov 1, 2021
1 parent 7594854 commit 826e295
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 255 deletions.
9 changes: 0 additions & 9 deletions scripts/DockerfileCi

This file was deleted.

39 changes: 0 additions & 39 deletions scripts/chain_verify.sh

This file was deleted.

23 changes: 8 additions & 15 deletions scripts/prometheus_conf/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,15 @@ rule_files:
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
- job_name: 'halley_1'
- job_name: 'halley'
static_configs:
- targets: ['halley1.seed.starcoin.org:9101']
- job_name: 'halley_2'
- targets: ['halley1.seed.starcoin.org:9101', 'halley2.seed.starcoin.org:9101', 'halley3.seed.starcoin.org:9101']
- job_name: 'proxima'
static_configs:
- targets: ['halley2.seed.starcoin.org:9101']
- job_name: 'halley_3'
- targets: [ 'proxima1.seed.starcoin.org:9101', 'proxima2.seed.starcoin.org:9101', 'proxima3.seed.starcoin.org:9101' ]
- job_name: 'barnard'
static_configs:
- targets: ['halley3.seed.starcoin.org:9101']
- job_name: 'proxima_1'
- targets: [ 'barnard1.seed.starcoin.org:9101', 'barnard2.seed.starcoin.org:9101', 'barnard3.seed.starcoin.org:9101','barnard4.seed.starcoin.org:9101', 'barnard5.seed.starcoin.org:9101', 'barnard6.seed.starcoin.org:9101' ]
- job_name: 'main'
static_configs:
- targets: ['proxima1.seed.starcoin.org:9101']
- job_name: 'proxima_2'
static_configs:
- targets: ['proxima2.seed.starcoin.org:9101']
- job_name: 'proxima_3'
static_configs:
- targets: ['proxima3.seed.starcoin.org:9101']

- targets: [ 'main1.seed.starcoin.org:9101', 'main2.seed.starcoin.org:9101', 'main3.seed.starcoin.org:9101','main4.seed.starcoin.org:9101', 'main5.seed.starcoin.org:9101', 'main6.seed.starcoin.org:9101','main7.seed.starcoin.org:9101', 'main8.seed.starcoin.org:9101', 'main9.seed.starcoin.org:9101' ]
8 changes: 0 additions & 8 deletions scripts/prometheus_conf/rule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,4 @@ groups:
labels:
severity: warning
annotations:
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes."

- alert: centauriNodeDown
expr: up{job=~"centauri_.+"} == 0
for: 5m
labels:
severity: warning
annotations:
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes."
7 changes: 7 additions & 0 deletions scripts/prometheus_conf/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

SCRIPT_DIR="$( cd "$( dirname "$0" )" >/dev/null 2>&1 && pwd )";
docker run -d \
-p 9090:9090 \
-v "${SCRIPT_DIR}"/prometheus.yml:/etc/prometheus/prometheus.yml \
prom/prometheus
80 changes: 0 additions & 80 deletions scripts/setup_cluster.sh

This file was deleted.

90 changes: 0 additions & 90 deletions scripts/starcoin_ci_docker.sh

This file was deleted.

14 changes: 0 additions & 14 deletions scripts/start.sh

This file was deleted.

0 comments on commit 826e295

Please sign in to comment.