diff --git a/docker-compose.pokt-mainnet.yml b/docker-compose.pokt-fr-1.yml similarity index 100% rename from docker-compose.pokt-mainnet.yml rename to docker-compose.pokt-fr-1.yml diff --git a/docker-compose.pokt-lt-01.yml b/docker-compose.pokt-lt-1.yml similarity index 99% rename from docker-compose.pokt-lt-01.yml rename to docker-compose.pokt-lt-1.yml index 9df8f7a9..4f3bb438 100644 --- a/docker-compose.pokt-lt-01.yml +++ b/docker-compose.pokt-lt-1.yml @@ -59,7 +59,7 @@ services: image: prom/prometheus:v2.30.3 container_name: prometheus volumes: - - ./prometheus:/etc/prometheus + - ./prometheus/prometheus-lt-1.yml:/etc/prometheus - prometheus_data:/prometheus command: - '--config.file=/etc/prometheus/prometheus.yml' diff --git a/prometheus/prometheus-lt-1.yml b/prometheus/prometheus-lt-1.yml new file mode 100644 index 00000000..3ca32e88 --- /dev/null +++ b/prometheus/prometheus-lt-1.yml @@ -0,0 +1,69 @@ +global: + scrape_interval: 15s + evaluation_interval: 15s + + # Attach these labels to any time series or alerts when communicating with + # external systems (federation, remote storage, Alertmanager). + external_labels: + monitor: 'docker-host-alpha' + +# Load and evaluate rules in this file every 'evaluation_interval' seconds. +rule_files: + - "alert.rules" + +# A scrape configuration containing exactly one endpoint to scrape. +scrape_configs: + - job_name: 'nodeexporter' + scrape_interval: 5s + static_configs: + - targets: ['nodeexporter:9100'] + + - job_name: 'cadvisor' + scrape_interval: 5s + static_configs: + - targets: ['cadvisor:8080'] + + - job_name: 'prometheus' + scrape_interval: 10s + static_configs: + - targets: ['localhost:9090'] + + - job_name: 'pushgateway' + scrape_interval: 10s + honor_labels: true + static_configs: + - targets: ['pushgateway:9091'] + + - job_name: 'pocket-lt-1' + scrape_interval: 10s + honor_labels: true + static_configs: + - targets: ['pocket-lt-1:8083'] + - targets: ['pocket-lt-1:26660'] + + - job_name: 'pocket-lt-2' + scrape_interval: 10s + honor_labels: true + static_configs: + - targets: ['pocket-lt-2:8083'] + - targets: ['pocket-lt-2:26660'] + + - job_name: 'pocket-lt-3' + scrape_interval: 10s + honor_labels: true + static_configs: + - targets: ['pocket-lt-3:8083'] + - targets: ['pocket-lt-3:26660'] + + - job_name: 'pocket-lt-4' + scrape_interval: 10s + honor_labels: true + static_configs: + - targets: ['pocket-lt-4:8083'] + - targets: ['pocket-lt-4:26660'] + + - job_name: 'traefik' + scrape_interval: 10s + honor_labels: true + static_configs: + - targets: ['traefik:8082'] \ No newline at end of file