| 1 | # Every five seconds, for a lively demo. Fifteen to thirty is more usual. |
| 2 | global: |
| 3 | scrape_interval: 5s |
| 4 | |
| 5 | scrape_configs: |
| 6 | # Our services, on the host. The gateway's metrics have a port of their own. |
| 7 | - job_name: payments |
| 8 | static_configs: |
| 9 | - targets: ["host.docker.internal:9080"] |
| 10 | labels: {service: gateway} |
| 11 | - targets: ["host.docker.internal:8081"] |
| 12 | labels: {service: wallet} |
| 13 | - targets: ["host.docker.internal:8082"] |
| 14 | labels: {service: auth} |
| 15 | - targets: ["host.docker.internal:8083"] |
| 16 | labels: {service: transfer} |
| 17 | - targets: ["host.docker.internal:8084"] |
| 18 | labels: {service: notification} |
| 19 | - targets: ["host.docker.internal:8085"] |
| 20 | labels: {service: webhook} |