Skip to content

Commit

Permalink
feat: Configured service discovery from JSON file
Browse files Browse the repository at this point in the history
  • Loading branch information
alesancor1 committed Feb 3, 2022
1 parent 0a991e5 commit 24f9d40
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.env*
config/prometheus/
assets
7 changes: 7 additions & 0 deletions config/prometheus/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
scrape_configs:
- job_name: falcon_prometheus
scrape_interval: 5s
file_sd_configs:
- files:
- /home/project/public/prometheus/targets.json
refresh_interval: 5s
6 changes: 5 additions & 1 deletion docker-falcon/docker-compose-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ services:
falcon-prometheus:
image: prom/prometheus:latest
container_name: falcon-prometheus
depends_on:
- falcon-assets-manager
command:
- --config.file=/etc/prometheus/prometheus.yml
- --config.file=/etc/prometheus/config.yml
volumes:
- ../config/prometheus:/etc/prometheus:ro
volumes_from:
- falcon-assets-manager:ro
ports:
- 5900:9090
# =========================================
Expand Down
8 changes: 6 additions & 2 deletions docker-falcon/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ services:
falcon-prometheus:
image: prom/prometheus:latest
container_name: falcon-prometheus
depends_on:
- falcon-assets-manager
command:
- --config.file=/etc/prometheus/prometheus.yml
- --config.file=/etc/prometheus/config.yml
volumes:
- ../config/prometheus/:/etc/prometheus/:ro
- ../config/prometheus:/etc/prometheus:ro
volumes_from:
- falcon-assets-manager:ro
networks:
- governify-falcon
# NGINX AND CERTS ==============================================================================
Expand Down

0 comments on commit 24f9d40

Please sign in to comment.