Skip to content

Commit

Permalink
Fix prom config & add another datanode to test compose
Browse files Browse the repository at this point in the history
  • Loading branch information
kysre committed Feb 11, 2024
1 parent e298776 commit 8f995fb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
12 changes: 6 additions & 6 deletions prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ scrape_configs:
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- leader_0:9000
- leader_1:9000
- datanode_0:9000
- datanode_1:9000
- datanode_2:9000
- targets: ['leader_0:9000']
- targets: ['leader_1:9000']
- targets: ['datanode_0:9000']
- targets: ['datanode_1:9000']
- targets: ['datanode_2:9000']
- targets: ['datanode_3:9000']
21 changes: 21 additions & 0 deletions test.docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,25 @@ services:
volumes:
- datanode_2_vol:/var/lib/turtlemq/data/

datanode_3:
image: kysre/turtlemq:datanode-${DATANODE_IMAGE_TAG}
restart: unless-stopped
depends_on:
- leader_0
- leader_1
environment:
- HOME_PATH=/var/lib/turtlemq/data/
- DATANODE_NAME=datanode_3
- DATANODE_PORT=8000
- LEADER_HOST=leader_0
- LEADER_PORT=8888
- PULL_TIMEOUT=10
- PENDING_TIMEOUT=15
- CLEANER_PERIOD=3
- PARTITIONS_COUNT=100
volumes:
- datanode_3_vol:/var/lib/turtlemq/data/

volumes:
prom_data:
driver: local
Expand All @@ -119,3 +138,5 @@ volumes:
driver: local
datanode_2_vol:
driver: local
datanode_3_vol:
driver: local

0 comments on commit 8f995fb

Please sign in to comment.