Commit 49b540f8 authored by wolfsack's avatar wolfsack
Browse files

prak05

parent ff2e1524
......@@ -10,7 +10,6 @@ services:
- moni_ipv6
restart: unless-stopped
c-advisor:
image: gcr.io/cadvisor/cadvisor:v0.43.0
container_name: c-advisor
......
......@@ -6,3 +6,18 @@ scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'node-exporter'
static_configs:
- targets: ['node-exporter:9100']
- job_name: 'graphana'
scrape_interval: 5s
static_configs:
- targets: ['go-demo:8090']
- job_name: 'temperatures'
scrape_interval: 10s
metrics_path: '/api/metrics'
static_configs:
- targets: ['go-demo:8090']
/prom
\ No newline at end of file
# Aufgabe 1 - Prometheus Targets
#
\ No newline at end of file
version: "3"
services:
prometheus:
image: prom/prometheus:v2.30.3
container_name: prometheus
ports:
- 9090:9090
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- ./prom:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
networks:
moni_ipv6:
ipv6_address: 2001:638:408:200:FC36:dddd::11
restart: unless-stopped
graphana:
image: grafana/grafana:6.5.0
container_name: graphana
ports:
- 3000:3000
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin_pass
- GF_USERS_ALLOW_SIGN_UP=false
networks:
moni_ipv6:
ipv6_address: 2001:638:408:200:FC36:dddd::19
restart: unless-stopped
whoami:
image: jennerwein/whoami
ports:
- 6321:80
container_name: whoami_6321
networks:
- moni_ipv6
restart: unless-stopped
miniwhoami:
image: jennerwein/miniwhoami
ports:
- 80:80
container_name: miniwhoami_80
networks:
moni_ipv6:
ipv6_address: 2001:638:408:200:FC36:dddd::100
restart: unless-stopped
whoami-node:
image: jennerwein/whoami-node
ports:
- 8080:8080
container_name: whoami_node_8080
networks:
moni_ipv6:
ipv6_address: 2001:638:408:200:FC36:dddd::101
restart: unless-stopped
node-exporter:
image: prom/node-exporter:v1.2.2
container_name: node-exporter
ports:
- '9100:9100'
networks:
- moni_ipv6
restart: unless-stopped
c-advisor:
image: gcr.io/cadvisor/cadvisor:v0.43.0
container_name: c-advisor
ports:
- '9200:8080'
networks:
- moni_ipv6
restart: unless-stopped
networks:
moni_ipv6:
external: true
name: moni_ipv6
\ No newline at end of file
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'node-exporter-own'
static_configs:
- targets: ['node-exporter:9100']
- job_name: 'node-exporter'
static_configs:
- targets: ['dh.docklab.de:9100']
- job_name: 'c-advisor-own'
static_configs:
- targets: ['c-advisor:8080']
- job_name: 'c-advisor-own'
static_configs:
- targets: ['dh.docklab.de:9010']
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment