mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-21 07:56:26 +01:00
5b8095a30a
Reasons for disabling http2:
- http2 is used very rarely comparing to http for Prometheus metrics exposition and service discovery
- http2 is much harder to debug than http
- http2 has very bad security record because of its complexity - see https://portswigger.net/research/http2
VictoriaMetrics components are compiled with nethttpomithttp2 tag because of these issues.
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4283
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4274
This is a follow-up for 72c3cd47eb
30 lines
774 B
YAML
30 lines
774 B
YAML
scrape_configs:
|
|
- job_name: foo
|
|
scrape_interval: 54s
|
|
scrape_timeout: 12s
|
|
metrics_path: /foo/bar
|
|
scheme: https
|
|
honor_labels: true
|
|
honor_timestamps: false
|
|
follow_redirects: false
|
|
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
|
|
tls_config:
|
|
cert_file: valid_cert_file
|
|
key_file: valid_key_file
|
|
basic_auth:
|
|
username: "myusername"
|
|
password: "mysecret"
|