Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Commit

Permalink
feat: add spring actuator to prometheus, WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
l3d00m committed Jan 12, 2024
1 parent 9801c85 commit cc187ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions roles/monitoring/templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ services:
image: prom/prometheus:v2.48.1@sha256:a67e5e402ff5410b86ec48b39eab1a3c4df2a7e78a71bf025ec5e32e09090ad4
networks:
{{ monitoring_network }}:
{{ db_network }}:
volumes:
- "{{prometheus_data_location}}:/prometheus"
- "{{prometheus_config_location}}:/etc/prometheus/prometheus.yml"
Expand Down
8 changes: 7 additions & 1 deletion roles/monitoring/templates/prometheus.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@ scrape_configs:
- job_name: "mysql"
scrape_interval: 60s
static_configs:
- targets: ['db_exporter:9104']
- targets: ['db_exporter:9104']

- job_name: "spring"
metrics_path: '/actuator/prometheus'
scrape_interval: 10s
static_configs:
- targets: ['backend:5000']

0 comments on commit cc187ab

Please sign in to comment.