Skip to content

Commit

Permalink
fix: added ip to prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
Toto-hitori committed Apr 24, 2024
1 parent f55157a commit df786c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/monitoring/prometheus/configuration/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ scrape_configs:
- job_name: 'WiqMetrics'
metrics_path: '/actuator/prometheus'
scrape_interval: 10s
scheme: https
static_configs:
- targets: ['host.docker.internal:8443']
- targets: ['<%= ENV["API_URI"] %>']
labels:
application: 'WIQ API'
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@
- "9090:9090"
networks:
mynetwork:
environment:
- API_URI=${API_URI}

volumes:
- prometheus_data:/prometheus
- /certs:/etc/letsencrypt/kiwiq.run.place:ro
Expand Down

0 comments on commit df786c7

Please sign in to comment.