|
@@ -65,6 +65,8 @@ total_counter_attributes = [
|
|
|
"IncomingOperations_inOps",
|
|
|
"OutgoingOperations_chainings",
|
|
|
"CacheFaultLooks_Total",
|
|
|
+ "CacheFaultLooks_BlockCache",
|
|
|
+ "CacheFaultLooks_EntryCache",
|
|
|
"Hits_Total",
|
|
|
"Hits_BlockCache",
|
|
|
"Hits_EntryCache",
|
|
@@ -78,6 +80,11 @@ def format_partition_agent(value):
|
|
|
formatted = re.sub('CN=|OU=|O=|T=', '', value).replace("=", " ").replace(" ", "").split("#")
|
|
|
return formatted
|
|
|
|
|
|
+def format_partition_data(value):
|
|
|
+ """strip unwanted data from Agent Partition data"""
|
|
|
+ formatted = re.sub('CN=|OU=|O=', '', value).replace(',', '.')
|
|
|
+ return formatted
|
|
|
+
|
|
|
def convert_timestamp(value):
|
|
|
"""convert Zulu time to current time in local timezone"""
|
|
|
utc_dt = datetime.datetime.strptime(str(value), "%Y%m%d%H%M%SZ")
|