Skip to content

Commit fdc3915

Browse files
committed
fetch raw data for GPFSDiskCap metrics
A workaround for the issue with zimon capacity query not returning all results
1 parent ca55ba8 commit fdc3915

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

source/queryHandler/Query.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,14 @@ def addMeasurement(self, meassure):
182182
return self
183183

184184
def __str__(self):
185-
dd = '-a' if self.includeDiskData else ''
185+
# dd = '-a' if self.includeDiskData else ''
186+
# Workaround for RTC Defect 280368: Zimon capacity query does not return all results (seen on CNSA)
187+
if (self.metrics and any('gpfs_disk_' in metric for metric in self.metrics)) or (self.sensor and self.sensor == "GPFSDiskCap"):
188+
dd = '-ar'
189+
elif self.includeDiskData:
190+
dd = '-a'
191+
else:
192+
dd = ''
186193

187194
if self.sensor is not None:
188195
queryString = 'get -j {0} group {1} bucket_size {2} {3}'.format(

0 commit comments

Comments
 (0)