某些云服务器的exporter探针程序是https协议,prometheus.yml 中默认http
需要做如下修改:
- 增加
scheme: https
- 增加
tls_config
yaml
- job_name: 10.30.71.250
scrape_interval: 1m
scheme: https
static_configs:
- targets: ['10.30.71.250:19100']
tls_config:
insecure_skip_verify: true
和普通对比
yaml
- job_name: 10.247.181.150
scrape_interval: 1m
static_configs:
- targets: ['10.247.181.150:9101']
clickhouse集群
yaml
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'clickhouse-chproxy'
scrape_interval: 1m
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
tls_config:
insecure_skip_verify: true
# ca_file: /etc/kubernetes/pki/ca.crt
cert_file: /usr/local/cloudmonitor/node_exporter/cert/exporter.crt
key_file: /usr/local/cloudmonitor/node_exporter/cert/exporter.key
static_configs:
- targets: ['bigdata-node1:19000']
labels:
instance: 'sa_admin'
- job_name: clickhouse_exporter
scrape_interval: 1m
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets:
- '10.114.32.126:9116'
- '10.114.32.127:9116'
- '10.114.32.128:9116'
- '10.114.105.112:9116'