Promethues增加https探针监控

发布于:2024-08-18 ⋅ 阅读:(100) ⋅ 点赞:(0)

某些云服务器的exporter探针程序是https协议,prometheus.yml 中默认http
需要做如下修改:

  1. 增加scheme: https
  2. 增加tls_config
  - 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

和普通对比

  - job_name: 10.247.181.150
    scrape_interval: 1m
    static_configs:
      - targets: ['10.247.181.150:9101']

clickhouse集群

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'

网站公告

今日签到

点亮在社区的每一天
去签到