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'
相关推荐
游戏开发爱好者82 小时前
iOS重构期调试实战:架构升级中的性能与数据保障策略
websocket·网络协议·tcp/ip·http·网络安全·https·udp
tmacfrank12 小时前
Android 网络全栈攻略(四)—— TCPIP 协议族与 HTTPS 协议
android·网络·https
2501_9160137412 小时前
iOS 多线程导致接口乱序?抓包还原 + 请求调度优化实战
websocket·网络协议·tcp/ip·http·网络安全·https·udp
码上淘金12 小时前
【Prometheus 】通过 Pushgateway 上报指标数据
prometheus
charlee441 天前
nginx部署发布Vite项目
nginx·性能优化·https·部署·vite
2501_915921431 天前
Fiddler 中文版怎么配合 Postman 与 Wireshark 做多环境接口调试?
websocket·网络协议·tcp/ip·http·网络安全·https·udp
游戏开发爱好者81 天前
iOS App首次启动请求异常调试:一次冷启动链路抓包与初始化流程修复
websocket·网络协议·tcp/ip·http·网络安全·https·udp
2501_915106321 天前
频繁迭代下完成iOS App应用上架App Store:一次快速交付项目的完整回顾
websocket·网络协议·tcp/ip·http·网络安全·https·udp
00后程序员张2 天前
免Mac上架实战:全平台iOS App上架流程的工具协作经验
websocket·网络协议·tcp/ip·http·网络安全·https·udp
笑衬人心。2 天前
HTTPS详解:原理 + 加解密过程 + 面试问答
java·网络协议·http·面试·https