diff --git a/ProTest/docker-compose.yml b/ProTest/docker-compose.yml index ff790160aa68722afe8bb5cf45b2778424fc4cff..22156d9da20ad4adfdf1ddb95143e9154a7a4b58 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 acb38841238eaacb7a97e8da9982d11cfb010afe..e960ceb0f7edf36b631ca6958b77f13fbe534bc4 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