prometheus.yml 688 B

12345678910111213141516171819202122232425262728293031323334
  1. global:
  2. scrape_interval: 15s
  3. evaluation_interval: 15s
  4. rule_files:
  5. # - "first_rules.yml"
  6. # - "second_rules.yml"
  7. scrape_configs:
  8. - job_name: 'prometheus'
  9. static_configs:
  10. - targets: ['localhost:9090']
  11. - job_name: 'auth-service'
  12. static_configs:
  13. - targets: ['auth-service:3001']
  14. metrics_path: '/metrics'
  15. - job_name: 'api-service'
  16. static_configs:
  17. - targets: ['api-service:3000']
  18. metrics_path: '/metrics'
  19. - job_name: 'postgres'
  20. static_configs:
  21. - targets: ['postgres:5432']
  22. - job_name: 'redis'
  23. static_configs:
  24. - targets: ['redis:6379']
  25. - job_name: 'nginx'
  26. static_configs:
  27. - targets: ['api-gateway:80']