Skip to content

Commit

Permalink
feat: Add node-exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirhBrt committed Feb 14, 2024
1 parent 2595066 commit ea10d07
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ services:
- gateway
env_file:
- .env

node-exporter:
container_name: node-exporter
image: prom/node-exporter
ports:
- 9100:9100
depends_on:
- gateway
env_file:
- .env

grafana:
container_name: grafana
Expand Down
8 changes: 8 additions & 0 deletions prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ alerting:
timeout: 10s
api_version: v1
scrape_configs:
- job_name: node
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
scheme: http
static_configs:
- targets:
- node-exporter:9100
- job_name: zookeeper
honor_timestamps: true
scrape_interval: 15s
Expand Down

0 comments on commit ea10d07

Please sign in to comment.