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'
相关推荐
川石课堂软件测试11 小时前
技术分享|JMeter接口与性能测试实战
数据库·功能测试·测试工具·jmeter·单元测试·postman·prometheus
游戏开发爱好者812 小时前
深入理解iOSTime Profiler:提升iOS应用性能的关键工具
android·ios·小程序·https·uni-app·iphone·webview
是店小二呀12 小时前
Prometheus监控盲区:Pushgateway如何收拢离线任务指标
prometheus
xmlhcxr1 天前
基于 HAProxy+Keepalived 构建高可用 ZrLog 博客系统及监控平台实现(Prometheus + Grafana)
架构·grafana·prometheus
困惑阿三1 天前
Nginx 域名绑定与 HTTPS 配置指南
运维·nginx·https·ssl
web3.08889991 天前
tb关键词API接口——解锁独一无二的商品
java·数据库·https
承渊政道2 天前
群晖配Plex搭建私人影音中心,用起来到底怎么样?
服务器·windows·网络协议·https·ip·视频·持续部署
川石课堂软件测试2 天前
软件测试:典型面试题库
数据库·python·功能测试·mysql·单元测试·grafana·prometheus
PinTrust SSL证书2 天前
Sectigo(Comodo)域名型DV通配符SSL
网络·网络协议·http·网络安全·https·软件工程·ssl
guojb8242 天前
告别部署踩坑:用 Docker Compose 优雅搞定多前端站点、HTTPS 与 SSE 推送
nginx·docker·https