Advertisement
Guest User

Untitled

a guest
Mar 29th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 KB | None | 0 0
  1. # The job name assigned to scraped metrics by default.
  2. job_name: <job_name>
  3.  
  4. # How frequently to scrape targets from this job.
  5. [ scrape_interval: <duration> | default = <global_config.scrape_interval> ]
  6.  
  7. # Per-scrape timeout when scraping this job.
  8. [ scrape_timeout: <duration> | default = <global_config.scrape_timeout> ]
  9.  
  10. # The HTTP resource path on which to fetch metrics from targets.
  11. [ metrics_path: <path> | default = /metrics ]
  12.  
  13. # honor_labels controls how Prometheus handles conflicts between labels that are
  14. # already present in scraped data and labels that Prometheus would attach
  15. # server-side ("job" and "instance" labels, manually configured target
  16. # labels, and labels generated by service discovery implementations).
  17. #
  18. # If honor_labels is set to "true", label conflicts are resolved by keeping label
  19. # values from the scraped data and ignoring the conflicting server-side labels.
  20. #
  21. # If honor_labels is set to "false", label conflicts are resolved by renaming
  22. # conflicting labels in the scraped data to "exported_<original-label>" (for
  23. # example "exported_instance", "exported_job") and then attaching server-side
  24. # labels. This is useful for use cases such as federation, where all labels
  25. # specified in the target should be preserved.
  26. #
  27. # Note that any globally configured "external_labels" are unaffected by this
  28. # setting. In communication with external systems, they are always applied only
  29. # when a time series does not have a given label yet and are ignored otherwise.
  30. [ honor_labels: <boolean> | default = false ]
  31.  
  32. # Configures the protocol scheme used for requests.
  33. [ scheme: <scheme> | default = http ]
  34.  
  35. # Optional HTTP URL parameters.
  36. params:
  37. [ <string>: [<string>, ...] ]
  38.  
  39. # Sets the `Authorization` header on every scrape request with the
  40. # configured username and password.
  41. # password and password_file are mutually exclusive.
  42. basic_auth:
  43. [ username: <string> ]
  44. [ password: <secret> ]
  45. [ password_file: <string> ]
  46.  
  47. # Sets the `Authorization` header on every scrape request with
  48. # the configured bearer token. It is mutually exclusive with `bearer_token_file`.
  49. [ bearer_token: <secret> ]
  50.  
  51. # Sets the `Authorization` header on every scrape request with the bearer token
  52. # read from the configured file. It is mutually exclusive with `bearer_token`.
  53. [ bearer_token_file: /path/to/bearer/token/file ]
  54.  
  55. # Configures the scrape request's TLS settings.
  56. tls_config:
  57. [ <tls_config> ]
  58.  
  59. # Optional proxy URL.
  60. [ proxy_url: <string> ]
  61.  
  62. # List of Azure service discovery configurations.
  63. azure_sd_configs:
  64. [ - <azure_sd_config> ... ]
  65.  
  66. # List of Consul service discovery configurations.
  67. consul_sd_configs:
  68. [ - <consul_sd_config> ... ]
  69.  
  70. # List of DNS service discovery configurations.
  71. dns_sd_configs:
  72. [ - <dns_sd_config> ... ]
  73.  
  74. # List of EC2 service discovery configurations.
  75. ec2_sd_configs:
  76. [ - <ec2_sd_config> ... ]
  77.  
  78. # List of OpenStack service discovery configurations.
  79. openstack_sd_configs:
  80. [ - <openstack_sd_config> ... ]
  81.  
  82. # List of file service discovery configurations.
  83. file_sd_configs:
  84. [ - <file_sd_config> ... ]
  85.  
  86. # List of GCE service discovery configurations.
  87. gce_sd_configs:
  88. [ - <gce_sd_config> ... ]
  89.  
  90. # List of Kubernetes service discovery configurations.
  91. kubernetes_sd_configs:
  92. [ - <kubernetes_sd_config> ... ]
  93.  
  94. # List of Marathon service discovery configurations.
  95. marathon_sd_configs:
  96. [ - <marathon_sd_config> ... ]
  97.  
  98. # List of AirBnB's Nerve service discovery configurations.
  99. nerve_sd_configs:
  100. [ - <nerve_sd_config> ... ]
  101.  
  102. # List of Zookeeper Serverset service discovery configurations.
  103. serverset_sd_configs:
  104. [ - <serverset_sd_config> ... ]
  105.  
  106. # List of Triton service discovery configurations.
  107. triton_sd_configs:
  108. [ - <triton_sd_config> ... ]
  109.  
  110. # List of labeled statically configured targets for this job.
  111. static_configs:
  112. [ - <static_config> ... ]
  113.  
  114. # List of target relabel configurations.
  115. relabel_configs:
  116. [ - <relabel_config> ... ]
  117.  
  118. # List of metric relabel configurations.
  119. metric_relabel_configs:
  120. [ - <relabel_config> ... ]
  121.  
  122. # Per-scrape limit on number of scraped samples that will be accepted.
  123. # If more than this number of samples are present after metric relabelling
  124. # the entire scrape will be treated as failed. 0 means no limit.
  125. [ sample_limit: <int> | default = 0 ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement