修改Pushgateway监控配置 请求示例1 为服务器hblock2、hblock3修改Pushgateway监控配置。 plaintext PUT /rest/v1/system/config/monitor?serverIdhblock3,hblock2 HTTP/1.1 Date: Fri, 24 May 2024 02: 59: 53 GMT ContentType: application/json; charsetutf8 Authorization: HBlock userName:signature ContentLength: 317 Host: 192.168.0.110: 1443 { "pushgateway": "192.168.0.1:9091", "pushgatewayTimeout": 3000, "pushgatewayLabels": { "agent": "ctyunoos", "idc": "2" }, "changeAll": true, "collectInterval": 5000, "collectMetric": "disk", "collectMetricItems": [ "tmpfs", "cgroup" ] } 响应示例1 plaintext HTTP/1.1 204 No Content xhblockrequestid: a097237d448f4371a8838df64e753f3e Connection: keepalive Date: Fri, 24 May 2024 02:59:53 GMT Server: HBlock 请求示例2 为所有服务器修改Pushgateway监控配置。 plaintext PUT /rest/v1/system/config/monitor HTTP/1.1 Date: Fri, 24 May 2024 05:55:52 GMT ContentType: application/json; charsetutf8 Authorization: HBlock userName:signature ContentLength: 318 Host: 192.168.0.110:1443 { "pushgateway": "192.168.0.1:9091", "pushgatewayTimeout": 3000, "pushgatewayLabels": { "agent": "ctyun", "idc": "3" }, "changeAll": false, "collectInterval": 5000, "collectMetric": "disk", "collectMetricItems": [ "pstore", "devpts" ] } 响应示例2 plaintext HTTP/1.1 204 No Content xhblockrequestid: 860024bc04814789b55f9d662914922a Connection: keepalive Date: Fri, 24 May 2024 05:55:52 GMT Server: HBlock