Skip to content

Commit

Permalink
prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
mo124121 committed Oct 28, 2024
1 parent 020374c commit 2fe5765
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,15 @@ services:
- "9000:9000"
volumes:
- "./pprotein/data:/data/data"

prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/data:/prometheus
ports:
- "9090:9090"
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
1 change: 1 addition & 0 deletions prometheus/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data
13 changes: 13 additions & 0 deletions prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
global:
scrape_interval: 10s

scrape_configs:
- job_name: "node_exporter"
static_configs:
- targets:
["isucon-server1:9100", "isucon-server2:9100", "isucon-server3:9100"]

- job_name: "process_exporter"
static_configs:
- targets:
["isucon-server1:9256", "isucon-server2:9256", "isucon-server3:9256"]

0 comments on commit 2fe5765

Please sign in to comment.