Commit d45c8ee6 authored by Ubuntu's avatar Ubuntu

monitor for sender

parent 2661c39b
......@@ -15,7 +15,7 @@ services:
sender:
image: caduceus/cmp2-test-net-tester:v0.0.12
container_name: sender
entrypoint: sender -test.run TestManyToMany /privatefromto-10_000.tmp 192.168.1.220 cryptor-sender 30000
entrypoint: sender -test.run TestManyToMany /privatefromto-10_000.tmp 35.177.15.217 cryptor-sender 100000
#entrypoint: sh -c 'sender -test.run TestManyToMany -test.timeout 0 /privatefromto-10_000.tmp 192.168.1.220 cryptor-sender 30000'
#echo " entrypoint: sh -c 'echo "+"ring"+" && sleep 10 && sender -test.run TestManyToMany -test.timeout 0 "
#entrypoint: sh -c 'echo "sender" && sleep 40 && go test -v -run TestSendSignatureTxsStream ./rpc/grpc/ --timeout 0 -args ring 192.168.1.242 100000'
......@@ -34,4 +34,29 @@ services:
window: 120s
depends_on:
- cryptor-sender
cadvisor:
image: google/cadvisor:latest
container_name: cadvisor
ports:
- "8081:8080"
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
depends_on:
- cryptor-sender
- sender
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9000:9090"
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- ./sender/prometheus:/prometheus
depends_on:
- cadvisor
......@@ -19,3 +19,7 @@ scrape_configs:
static_configs:
- targets: ['nebula:18020','nebula1:18020','nebula2:18020','nebula3:18020','nebula4:18020','nebula5:18020','nebula6:18020']
- job_name: sender
scrape_interval: 5s
static_configs:
- targets: ['sender:2115']
Markdown is supported
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