./stor config rm { -i | --item } monitor --pushgateway PUSHGATEWAY [ --pushgateway-labels LABEL &<1-n> ] [ --collect-metric COLLECT_METRIC [ --collect-metric-items ITEM &<1-n> ] ] [ { -n | --server } SERVER_ID &<1-n> ]
此命令用来删除pushgateway监控配置。
注意
如果删除了“指标必须具备的label”,可能会造成相关监控数据无法识别的风险。
参数
参数 | 描述 |
---|---|
--pushgateway PUSHGATEWAY | 需要删除pushgateway监控配置的地址和接口,格式为IPv4:port、[IPv6]:port或者domain-name:port。 |
--pushgateway-labels LABEL | pushgateway对应的标签值,取值是label项。一次可以删除多个labels值,以英文逗号(,)分开。 取值:key值。 |
--collect-metric COLLECT_METRIC | 指定删除的监控指标。 取值为:server、fileSystem、interface、load、disk、tcp、os。 默认删除上述所有监控指标。 |
--collect-metric-items ITEM | 指定监控指标下的要删除的具体items配置项。一次删除多个items配置项,以英文逗号(,)分开。 |
-n SERVER_ID 或 --server SERVER_ID | 指定要删除pushgateway监控配置的HBlock服务器ID。一次可以删除多个HBlock服务器的pushgateway监控配置,以英文逗号(,)分开。 默认删除所有HBlock服务器的pushgateway监控配置。 |
示例
删除监控配置信息。
[root@hblockserver CTYUN_HBlock_Plus_3.8.0_x64]# ./stor config rm -i monitor --pushgateway 192.168.0.1:9091
Removed pushgateway 192.168.0.1:9091 successfully.