Skip to content

Commit 747b517

Browse files
committed
remove FIELDS check
Signed-off-by: hwassman <[email protected]>
1 parent 12c6b42 commit 747b517

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

source/queryHandler/Query.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ class Query(object):
4343
NOP: "{0}", SUM: "sum({0})", AVG: "avg({0})", MAX: "max({0})", MIN: "min({0})", RATE: "rate({0})"}
4444
OPS_STR = {'nop': NOP, 'noop': NOP, 'sum': SUM, 'avg': AVG, 'max': MAX, 'min': MIN, 'rate': RATE}
4545

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"])
5252

5353
DISK_CAP_METRICS = set(["gpfs_disk_disksize", "gpfs_disk_free_fullkb", "gpfs_disk_free_fragkb",
5454
"gpfs_pool_disksize", "gpfs_pool_free_fragkb", "gpfs_pool_free_fullkb",
@@ -116,17 +116,17 @@ def addMetricsGroup(self, sensor):
116116

117117
def addGroupByMetric(self, groupByMetric):
118118
'''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)
121121
self.groupby.append(groupByMetric)
122122
return self
123123

124124
def addFilter(self, field, value):
125125
'''Add a filter of the form "field=value" where
126126
the field is an identifier key element and
127127
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)
130130
newFilter = field + "=" + value
131131
if newFilter not in self.filters:
132132
self.filters.append(newFilter)

0 commit comments

Comments
 (0)