From 983e352e56f1f218cb8f6f5d506ab0bd3311860f Mon Sep 17 00:00:00 2001 From: Michael Schenkelberger <michael.schenkelberger@smail.inf.h-brs.de> Date: Mon, 6 Dec 2021 18:45:05 +0000 Subject: [PATCH] last Version --- ProTest/docker-compose.yml | 13 ++++++++++++- ProTest/prometheus/prometheus.yml | 31 ++++++++++++++++++++++++++++--- 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/ProTest/docker-compose.yml b/ProTest/docker-compose.yml index ff79016..22156d9 100644 --- a/ProTest/docker-compose.yml +++ b/ProTest/docker-compose.yml @@ -57,6 +57,7 @@ services: # placement: # constraints: # - node.hostname == ${HOSTNAME} + cadvisor: image: gcr.io/cadvisor/cadvisor volumes: @@ -74,7 +75,6 @@ services: grafana: image: grafana/grafana - user: "472" depends_on: - prometheus ports: @@ -89,6 +89,17 @@ services: ipv6_address: "2001:638:408:200:fc59:cafe::19" restart: always + influxdb: + image: influxdb:latest +# ports: +# - 8186:8186 + volumes: + - /home/mchen2s/influx/db:/var/lib/influxdb2:rw + networks: + my_ipv6: + ipv6_address: "2001:638:408:200:fc59:cafe::12" + restart: always + networks: my_ipv6: external: diff --git a/ProTest/prometheus/prometheus.yml b/ProTest/prometheus/prometheus.yml index acb3884..e960ceb 100644 --- a/ProTest/prometheus/prometheus.yml +++ b/ProTest/prometheus/prometheus.yml @@ -20,15 +20,40 @@ scrape_configs: # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config. - job_name: 'prometheus' - # metrics_path defaults to '/metrics' + # metrics_path: /metrics # scheme defaults to 'http'. static_configs: - targets: ['localhost:9090'] - - job_name: 'docker' + # - job_name: 'docker' # metrics_path defaults to '/metrics' # scheme defaults to 'http'. + # static_configs: + # - targets: ['localhost:9323'] + - job_name: local_metrics + metrics_path: /metrics + static_configs: + - targets: ['[2001:638:408:200:FC58::1]:9100'] + + - job_name: local_cadvisor + static_configs: + - targets: + - cadvisor:8080 + + - job_name: host_metrics + metrics_path: /metrics + static_configs: + - targets: + - dh-prod-ipv6.docklab.de:9100 + + - job_name: docklab_metrics + metrics_path: /metrics + static_configs: + - targets: + - dh-ipv6.docklab.de:8777 + - job_name: host_cadvisor static_configs: - - targets: ['localhost:9323'] + - targets: + - cadvisor:8080 -- GitLab