diff --git a/config/.prometheus.yml.swp b/config/.prometheus.yml.swp new file mode 100644 index 0000000..187309a Binary files /dev/null and b/config/.prometheus.yml.swp differ diff --git a/config/prometheus.yml b/config/prometheus.yml new file mode 100644 index 0000000..b6dcdd2 --- /dev/null +++ b/config/prometheus.yml @@ -0,0 +1,13 @@ +global: + scrape_interval: 2s + evaluation_interval: 2s + scrape_timeout: 1s + +scrape_configs: + - job_name: nixie + static_configs: + - targets: + - 192.168.88.16 + - 192.168.88.17 + - 192.168.88.18 + - 192.168.88.20 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1bbec54 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: '3.7' + +services: + prometheus: + network_mode: "host" + image: prom/prometheus:latest + command: + - --config.file=/config/prometheus.yml + volumes: + - ./config:/config:ro