Skip to content

Commit

Permalink
fix monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahdi Gheidi committed Feb 15, 2024
1 parent 46f9201 commit 1a42ecc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
9 changes: 1 addition & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,12 @@ services:
- ./monitoring/grafana-provisioning/dashboards:/etc/grafana/provisioning/dashboards
- ./monitoring/grafana-provisioning/datasources:/etc/grafana/provisioning/datasources

node_exporter_1:
node_exporter:
image: prom/node-exporter:latest
ports:
- "9100:9100"
networks:
- broker

node_exporter_2:
image: prom/node-exporter:latest
ports:
- "9101:9100"
networks:
- broker

networks:
broker:
1 change: 0 additions & 1 deletion kafka_server/broker/file/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def append(self, key: str, value: str):
return False
return True


def approve_appending(self):
try:
with self._append_lock:
Expand Down
2 changes: 1 addition & 1 deletion monitoring/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ scrape_configs:
- job_name: 'node'
scrape_interval: 5s
static_configs:
- targets: ['node_exporter_1:9100', 'node_exporter_2:9100']
- targets: ['node_exporter:9100']
- job_name: 'broker'
scrape_interval: 5s
static_configs:
Expand Down

0 comments on commit 1a42ecc

Please sign in to comment.