diff --git a/docker-compose.yml b/docker-compose.yml index 5268287..aa7c85c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/kafka_server/broker/file/segment.py b/kafka_server/broker/file/segment.py index 5d798e7..bceff90 100644 --- a/kafka_server/broker/file/segment.py +++ b/kafka_server/broker/file/segment.py @@ -41,7 +41,6 @@ def append(self, key: str, value: str): return False return True - def approve_appending(self): try: with self._append_lock: diff --git a/monitoring/prometheus.yml b/monitoring/prometheus.yml index 51f77eb..1c6b475 100644 --- a/monitoring/prometheus.yml +++ b/monitoring/prometheus.yml @@ -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: