modify target objective (db time)

This commit is contained in:
Dongsheng Yang
2020-04-06 12:56:01 -04:00
committed by Dana Van Aken
parent b711914bd6
commit 4fd1abbe6f
12 changed files with 27398 additions and 6284 deletions

View File

@@ -58,7 +58,8 @@ def create_settings(metric_data, dbms):
if vartype in (2, 3): # Numeric (integer/real)
if 'average' in name or name.endswith('current') or \
name.startswith('sysstat.session pga memory') or \
name.startswith('sysstat.session uga memory'):
name.startswith('sysstat.session uga memory') or \
name.endswith('wait_class#'):
mettype = 3 # Statistic
else:
mettype = 1 # Counter - most common type of numeric metric
@@ -73,6 +74,7 @@ def create_settings(metric_data, dbms):
('dbms', dbms),
('name', 'global.{}'.format(name)),
('vartype', vartype),
('default', value),
('summary', summary),
('scope', 'global'),
('metric_type', mettype),

View File

@@ -75,6 +75,7 @@ def main():
fields['name'] = '{}.{}'.format(view_name, metric_name)
fields['vartype'] = mstats['vartype']
vartypes.add(fields['vartype'])
fields['default'] = None
fields['summary'] = mstats['summary']
fields['scope'] = scope
metric_type = mstats['metric_type']