@@ -43,12 +43,12 @@ class Query(object):
43
43
NOP : "{0}" , SUM : "sum({0})" , AVG : "avg({0})" , MAX : "max({0})" , MIN : "min({0})" , RATE : "rate({0})" }
44
44
OPS_STR = {'nop' : NOP , 'noop' : NOP , 'sum' : SUM , 'avg' : AVG , 'max' : MAX , 'min' : MIN , 'rate' : RATE }
45
45
46
- FIELDS = set (["gpfs_cluster_name" , "gpfs_disk_name" , "gpfs_diskpool_name" ,
47
- "gpfs_disk_usage_name" , "gpfs_fset_name" , "gpfs_fs_name" ,
48
- "mountPoint" , "netdev_name" , 'diskdev_name' , "node" , "db_name" ,
49
- "operation" , "protocol" , "waiters_time_threshold" , "export" ,
50
- "nodegroup" , "account" , "filesystem" , "tct_csap" , "tct_operation" , "cloud_nodeclass" ,
51
- "gpfs_health_component" , "gpfs_health_entity" ])
46
+ # FIELDS = set(["gpfs_cluster_name", "gpfs_disk_name", "gpfs_diskpool_name",
47
+ # "gpfs_disk_usage_name", "gpfs_fset_name", "gpfs_fs_name",
48
+ # "mountPoint", "netdev_name", 'diskdev_name', "node", "db_name",
49
+ # "operation", "protocol", "waiters_time_threshold", "export",
50
+ # "nodegroup", "account", "filesystem", "tct_csap", "tct_operation", "cloud_nodeclass",
51
+ # "gpfs_health_component", "gpfs_health_entity", "gpfs_hw_entity", "gpfs_hw_enc_serial "])
52
52
53
53
DISK_CAP_METRICS = set (["gpfs_disk_disksize" , "gpfs_disk_free_fullkb" , "gpfs_disk_free_fragkb" ,
54
54
"gpfs_pool_disksize" , "gpfs_pool_free_fragkb" , "gpfs_pool_free_fullkb" ,
@@ -116,17 +116,17 @@ def addMetricsGroup(self, sensor):
116
116
117
117
def addGroupByMetric (self , groupByMetric ):
118
118
'''Add a metric to be used in grouping multi-metric (operation) columns'''
119
- if groupByMetric not in self .FIELDS :
120
- raise ValueError ("unknown groupby type %s" % groupByMetric )
119
+ # if groupByMetric not in self.FIELDS:
120
+ # raise ValueError("unknown groupby type %s" % groupByMetric)
121
121
self .groupby .append (groupByMetric )
122
122
return self
123
123
124
124
def addFilter (self , field , value ):
125
125
'''Add a filter of the form "field=value" where
126
126
the field is an identifier key element and
127
127
value is a constant or a regular expression'''
128
- if field not in self .FIELDS :
129
- raise ValueError ("unknown filter type %s" % field )
128
+ # if field not in self.FIELDS:
129
+ # raise ValueError("unknown filter type %s" % field)
130
130
newFilter = field + "=" + value
131
131
if newFilter not in self .filters :
132
132
self .filters .append (newFilter )
0 commit comments