1. 开启Prometheus遥测数据

默认情况下, 遥测功能(telemetry)是关闭的(selector 为 none),像这样:

1
2
3
4
5
6
7
8
9
telemetry:
  selector: ${SW_TELEMETRY:none}
  none:
  prometheus:
    host: ${SW_TELEMETRY_PROMETHEUS_HOST:0.0.0.0}
    port: ${SW_TELEMETRY_PROMETHEUS_PORT:1234}
    sslEnabled: ${SW_TELEMETRY_PROMETHEUS_SSL_ENABLED:false}
    
本文链接: https://www.8a.hk/article/show.asp?id=1765
工单