config_sd.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. prometheus:
  2. config:
  3. scrape_configs:
  4. - job_name: file
  5. file_sd_configs:
  6. - files:
  7. - './testdata/dummy.json'
  8. - job_name: k8s
  9. kubernetes_sd_configs:
  10. - role: node
  11. - job_name: ec2
  12. ec2_sd_configs:
  13. - region: us-west-2
  14. - job_name: gce
  15. gce_sd_configs:
  16. - project: my-project
  17. zone: my-zone
  18. - job_name: dns
  19. dns_sd_configs:
  20. - names:
  21. - name1
  22. - job_name: openstack
  23. openstack_sd_configs:
  24. - role: hypervisor
  25. region: region
  26. - job_name: hetzner
  27. hetzner_sd_configs:
  28. - role: robot
  29. - job_name: marathon
  30. marathon_sd_configs:
  31. - servers:
  32. - server1
  33. - job_name: nerve
  34. nerve_sd_configs:
  35. - servers:
  36. - server1
  37. paths:
  38. - /path1
  39. - job_name: serverset
  40. serverset_sd_configs:
  41. - servers:
  42. - server1
  43. paths:
  44. - /path1
  45. - job_name: triton
  46. triton_sd_configs:
  47. - account: account
  48. dns_suffix: suffix
  49. endpoint: endpoint
  50. - job_name: eureka
  51. eureka_sd_configs:
  52. - server: http://server1
  53. - job_name: azure
  54. azure_sd_configs:
  55. - subscription_id: subscription
  56. tenant_id: tenant
  57. client_id: client
  58. client_secret: secret
  59. - job_name: consul
  60. consul_sd_configs:
  61. - server: server1
  62. - job_name: digitalocean
  63. digitalocean_sd_configs:
  64. - basic_auth:
  65. username: username
  66. password: password
  67. - job_name: dockerswarm_sd_config
  68. dockerswarm_sd_configs:
  69. - host: host
  70. role: nodes