查询Pushgateway监控配置 本节主要介绍查询Pushgateway监控配置命令。 ./stor config ls { i item } monitor [ { n server } SERVERID & ] 此命令用来查询Pushgateway监控配置信息。 参数 参数 描述 n SERVERID 或 serverSERVERID 指定要查询Pushgateway监控配置的HBlock服务器ID。一次可以查询多个HBlock服务器的Pushgateway监控配置,以英文逗号(,)分开。 默认查询所有HBlock服务器的Pushgateway监控配置。 示例 查询所有服务器的Pushgateway监控配置。 plaintext [root@hblockserver CTYUNHBlockPlus3.8.0x64] ./stor config ls i monitor { "monitors" : [ { "serverId" : "hblock1", "send" : { "interval" : 20000, "timeout" : 2000, "pushgatewayTimeout" : 10000, "pushgateways" : [ { "address" : "192.168.0.1", "port" : 9091, "labels" : { "agent" : "agentname", "idc" : "idcname", "hostname" : "hblockserver", "serverIp" : "192.168.0.110", "clusterId" : "B8BFE3108DF6429E8C8AACD22310AC08", "clusterName" : "stor2", "job" : "hblock" } } ] }, "collect" : { "interval" : 14000, "metrics" : [ { "name" : "storFs", "interval" : 20000, "items" : [ "ds1", "ds2", "mdm" ] } ] } }, { "serverId" : "hblock3", "send" : { "interval" : 20000, "timeout" : 2000, "pushgatewayTimeout" : 10000, "pushgateways" : [ ] }, "collect" : { "interval" : 14000, "metrics" : [ { "name" : "storFs", "interval" : 20000, "items" : [ "ds1" ] } ] } }, { "serverId" : "hblock2", "send" : { "interval" : 20000, "timeout" : 2000, "pushgatewayTimeout" : 10000, "pushgateways" : [ { "address" : "192.168.0.1", "port" : 9091, "labels" : { "agent" : "agentname", "idc" : "idcname", "hostname" : "pm006", "serverIp" : "192.168.0.192", "clusterId" : "B8BFE3108DF6429E8C8AACD22310AC08", "clusterName" : "stor2", "job" : "hblock" } } ] }, "collect" : { "interval" : 14000, "metrics" : [ { "name" : "storFs", "interval" : 20000, "items" : [ "ds1", "mdm" ] } ] } } ] } 查询服务器hblock1、hblock2的Pushgateway监控配置。 plaintext [root@hblockserver CTYUNHBlockPlus3.8.0x64]