Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
hoseinaghaei committed Feb 15, 2024
2 parents 9e1b03c + 1a42ecc commit 48f7d8f
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 48f7d8f

Please sign in to comment.