2020-02-23 11:35:47 +00:00
|
|
|
scrape_configs:
|
2023-05-26 07:39:45 +00:00
|
|
|
- job_name: foo
|
|
|
|
scrape_interval: 54s
|
|
|
|
scrape_timeout: 12s
|
|
|
|
metrics_path: /foo/bar
|
|
|
|
scheme: https
|
|
|
|
honor_labels: true
|
|
|
|
honor_timestamps: false
|
|
|
|
follow_redirects: false
|
2023-06-05 13:56:49 +00:00
|
|
|
enable_http2: true
|
2023-05-26 07:39:45 +00:00
|
|
|
static_configs:
|
|
|
|
- targets: ["foo.bar", "aaa"]
|
|
|
|
labels:
|
|
|
|
x: y
|
|
|
|
__scrape_timeout__: "5s"
|
|
|
|
- job_name: file-job
|
|
|
|
file_sd_configs:
|
|
|
|
- files: ["file_sd_*.yml"]
|
|
|
|
- files: ["file_sd.json"]
|
|
|
|
- job_name: service-kubernetes
|
|
|
|
kubernetes_sd_configs:
|
|
|
|
- role: endpoints
|
|
|
|
api_server: "https://localhost:1234"
|
|
|
|
follow_redirects: true
|
2023-06-05 13:56:49 +00:00
|
|
|
enable_http2: true
|
2023-05-26 07:39:45 +00:00
|
|
|
tls_config:
|
|
|
|
cert_file: valid_cert_file
|
|
|
|
key_file: valid_key_file
|
|
|
|
basic_auth:
|
|
|
|
username: "myusername"
|
|
|
|
password: "mysecret"
|