查询Pushgateway监控配置 请求示例2 查询所有服务器的Pushgateway监控配置。 plaintext GET /rest/v1/system/config/monitor HTTP/1.1 Date: Fri, 24 May 2024 09:06:56 GMT ContentType: application/json; charsetutf8 Authorization: HBlock userName:signature Host: 192.168.0.110:1443 响应示例2 plaintext HTTP/1.1 200 OK xhblockrequestid: 4b5e0623e73a4dcd8754fd2ed504b9c1 Connection: keepalive ContentLength: 1115 Date: Fri, 24 May 2024 09:06:56 GMT ContentType: application/json;charsetutf8 Server: HBlock { "data": { "monitors": [ { "serverId": "hblock1", "send": { "interval": 20000, "timeout": 2000, "pushgatewayTimeout": 3000, "pushgateways": [ { "address": "192.168.0.1", "port": 9091, "labels": { "hostname": "hblockserver", "serverIp": "192.168.0.110", "clusterId": "B8BFE3108DF6429E8C8AACD22310AC08", "clusterName": "stor2", "job": "hblock", "agent": "ctyun", "idc": "3" } } ] }, "collect": { "interval": 14000, "metrics": [ { "name": "storFs", "interval": 20000, "items": [ "ds1", "ds2", "mdm" ] }, { "name": "disk", "interval": 5000, "items": [ "tmpfs", "devpts", "pstore", "cgroup" ] } ] } }, { "serverId": "hblock3", "send": { "interval": 20000, "timeout": 2000, "pushgatewayTimeout": 3000, "pushgateways": [ { "address": "192.168.0.1", "port": 9091, "labels": { "agent": "ctyun", "idc": "3", "hostname": "ecs96890915140", "serverIp": "192.168.0.102", "clusterId": "B8BFE3108DF6429E8C8AACD22310AC08", "clusterName": "stor2", "job": "hblock" } } ] }, "collect": { "interval": 14000, "metrics": [ { "name": "storFs", "interval": 20000, "items": [ "ds1" ] }, { "name": "server", "interval": 5000, "items": [ "cpu" ] }, { "name": "disk", "interval": 5000, "items": [ "tmpfs", "devpts", "pstore", "cgroup" ] } ] } }, { "serverId": "hblock2", "send": { "interval": 20000, "timeout": 2000, "pushgatewayTimeout": 3000, "pushgateways": [ { "address": "192.168.0.1", "port": 9091, "labels": { "agent": "ctyun", "idc": "3", "hostname": "pm006", "serverIp": "192.168.0.192", "clusterId": "B8BFE3108DF6429E8C8AACD22310AC08", "clusterName": "stor2", "job": "hblock" } } ] }, "collect": { "interval": 14000, "metrics": [ { "name": "storFs", "interval": 20000, "items": [ "ds1", "mdm" ] }, { "name": "server", "interval": 5000, "items": [ "cpu" ] }, { "name": "disk", "interval": 5000, "items": [ "tmpfs", "devpts", "pstore", "cgroup" ] } ] } } ] } }