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'
相关推荐
ESDWAN20 分钟前
海外系统偶尔打不开,怎么区分 DNS 异常与网络连接故障?
tcp/ip·https
Crayon Lin5 小时前
Prometheus
prometheus
2501_915921435 小时前
iOS应用耗电测试:使用Energy Log、Keymob和Instruments进行性能监控与能源消耗分析
android·ios·小程序·https·uni-app·iphone·webview
可信时间戳8 小时前
原创作品怎么申请版权?草稿、定稿、已发布、已授权,四个阶段四个做法
网络协议·http·https
Lsetea14 小时前
OpenSSL的checkhost显示不匹配却退出0:名称检查与证书验收
linux·https·shell·ssl证书·openssl
万年咸鱼1 天前
HTTPS 是如何保证传输安全的?
网络协议·安全·https
2501_915909061 天前
抓包工具断点拦截是什么?如何半路拦截修改 HTTP 请求
网络协议·计算机网络·网络安全·adb·https·udp
幸福清风1 天前
从域名到一行 nginx 配置:一次站点 HTTPS 证书更换与排障复盘
python·nginx·https
半摆烂日常1 天前
手机表单的左滑操作:触摸事件的处理细节
大数据·开发语言·人工智能·智能手机·https·c#