diff --git a/deploy/grafana/docker-compose.yaml b/deploy/grafana/docker-compose.yaml new file mode 100644 index 0000000..a921b1a --- /dev/null +++ b/deploy/grafana/docker-compose.yaml @@ -0,0 +1,11 @@ +version: "3.2" +services: + grafana: + image: grafana/grafana:latest + ports: + - 3000:3000 + volumes: + - grafana-storage:/var/lib/grafana + +volumes: + grafana-storage: diff --git a/deploy/prometheus/docker-compose.yaml b/deploy/prometheus/docker-compose.yaml new file mode 100644 index 0000000..f139b6a --- /dev/null +++ b/deploy/prometheus/docker-compose.yaml @@ -0,0 +1,12 @@ +version: "3.2" +services: + prometheus: + image: prom/prometheus + ports: + - 9090:9090 + volumes: + - prometheus_data:/prometheus + - ./prometheus.yml:/etc/prometheus/prometheus.yml + +volumes: + prometheus_data: diff --git a/deploy/prometheus/prometheus.yml b/deploy/prometheus/prometheus.yml new file mode 100644 index 0000000..c3d60db --- /dev/null +++ b/deploy/prometheus/prometheus.yml @@ -0,0 +1,13 @@ +global: + scrape_interval: 15s + evaluation_interval: 15s +scrape_configs: + - job_name: prometheus + static_configs: + - targets: + - localhost:9090 + - job_name: test3k_auth + # metrics_path: /prometheus + static_configs: + - targets: + - 192.168.31.107:9994