添加监控配置 请求示例1 为服务器hblock2、hblock3添加Pushgateway监控配置。 plaintext POST /rest/v1/system/config/monitor?serverIdhblock3,hblock2 HTTP/1.1 Date: Fri, 24 May 2024 02:24:01 GMT ContentType: application/json; charsetutf8 Authorization: HBlock userName:signature ContentLength: 138 Host: 192.168.0.110:1443 { "pushgateway": "192.168.0.1:9091", "pushgatewayLabels": { "agent": "agentname", "idc": "idcname" } } 响应示例1 plaintext HTTP/1.1 200 OK xhblockrequestid: 65ba83698f7742de82c2a26fcd57e6e1 Connection: keepalive ContentLength: 0 Date: Fri, 24 May 2024 02:24:01 GMT Server: HBlock 请求示例2 为所有服务器添加Pushgateway监控配置。 plaintext POST /rest/v1/system/config/monitor HTTP/1.1 Date: Fri, 24 May 2024 02:43:57 GMT ContentType: application/json; charsetutf8 Authorization: HBlock userName:signature ContentLength: 130 Host: 192.168.0.110:1443 { "pushgateway": "192.168.0.1:9091", "pushgatewayLabels": { "agent":"ctyun", "idc": "idc8" } } 响应示例2 plaintext HTTP/1.1 200 OK xhblockrequestid: 9949f15915b24eada38615013e93ea53 Connection: keepalive ContentLength: 0 Date: Fri, 24 May 2024 02:43:57 GMT Server: HBlock 请求示例3 添加数据格式为prometheusTextBased监控配置。 plaintext POST /rest/v1/system/config/monitor HTTP/1.1 Date: Fri, 12 Jun 2026 02:26:21 GMT ContentType: application/json; charsetutf8 Authorization: HBlock userName:signature ContentLength: 298 Host: 192.168.0.65:1443 { "metricDataformat": "prometheusTextBased", "receiverUrl": " "method": "PUT", "authType": "Basic", "basicUsername": "user1", "basicPassword": "pwd1", "metricLabels": { "agent": "ctyun", "idc": "idc1" } }