Promethues增加https探针监控

某些云服务器的exporter探针程序是https协议,prometheus.yml 中默认http

需要做如下修改:

  1. 增加scheme: https
  2. 增加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'
相关推荐
IPdodo_2 小时前
2026年爬虫代理 IP 选择指南:从可用率、延迟到成本验收
网络协议·tcp/ip·scrapy·http·https·beautifulsoup·httpx
瓦格哈儿5 小时前
删掉旧 SSL 证书会影响线上业务吗?风险点梳理
网络协议·https·ssl
美酒没故事°6 小时前
https和tls有什么区别?
网络协议·http·https
Lsetea8 小时前
Cloudflare报526 Invalid SSL certificate:源站证书与Nginx回源TLS排查
nginx·https·ssl证书·cloudflare·tls
Lsetea8 小时前
SSL证书快过期怎么自动检查:用OpenSSL checkend做7天预警与线上证书验收
https·ssl证书·openssl·systemd·证书监控
MetaLite9 小时前
HTTPS之外的响应加密-GCM序列化与处理器顺序
网络协议·http·https
Neighbor_OldY10 小时前
云上证书过期与HTTPS安全治理实战:证书到期没人管、自动化续期与证书链排查
安全·https·自动化
美酒没故事°10 小时前
是tls、https、waf
网络协议·http·https
hzxpaipai10 小时前
企业官网 Nginx 部署完整流程:HTTPS、301、静态缓存与日志配置
nginx·缓存·https
2501_915106321 天前
安卓抓包软件2026,免证书抓包 应用层抓包 代理抓包全解析
网络协议·计算机网络·网络安全·ios·adb·https·udp