💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] ### **HTTPS** 该配置在prometheus.yml文件中,配置如下: ``` scrape_configs: - job_name: xxxx scheme: https tls_config: insecure_skip_verify: true static_configs: - targets: ["x.x.x.x:6443"] ``` `tls_config`的配置项参考 [prometheus的tls-config](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#tls_config) ``` # CA certificate to validate API server certificate with. [ ca_file: <filename> ] # Certificate and key files for client cert authentication to the server. [ cert_file: <filename> ] [ key_file: <filename> ] # ServerName extension to indicate the name of the server. # https://tools.ietf.org/html/rfc4366#section-3.1 [ server_name: <string> ] # Disable validation of the server certificate. [ insecure_skip_verify: <boolean> ] # Minimum acceptable TLS version. Accepted values: TLS10 (TLS 1.0), TLS11 (TLS # 1.1), TLS12 (TLS 1.2), TLS13 (TLS 1.3). # If unset, Prometheus will use Go default minimum version, which is TLS 1.2. # See MinVersion in https://pkg.go.dev/crypto/tls#Config. [ min_version: <string> ] ```