Commit 47d39618827715579f6f787dba087ebe9dfbdd8f
1 parent
a1383b0a
Exists in
master
Add job scrape to connect to host machine service
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
prometheus-grafana/prometheus.yml
... | ... | @@ -9,4 +9,8 @@ rule_files: |
9 | 9 | scrape_configs: |
10 | 10 | - job_name: prometheus |
11 | 11 | static_configs: |
12 | - - targets: ['localhost:9090'] | |
13 | 12 | \ No newline at end of file |
13 | + - targets: ['localhost:9090'] | |
14 | + - job_name: app | |
15 | + scrape_interval: 5s | |
16 | + static_configs: | |
17 | + - targets: ['host.docker.internal:10088'] | |
14 | 18 | \ No newline at end of file | ... | ... |