diff --git a/puppetboard/app.py b/puppetboard/app.py index 66e3bd8..18a8a9a 100644 --- a/puppetboard/app.py +++ b/puppetboard/app.py @@ -83,16 +83,10 @@ def index(): 'com.puppetlabs.puppetdb.query.population:type=default,name=num-resources') avg_resources_node = get_or_abort(puppetdb.metric, 'com.puppetlabs.puppetdb.query.population:type=default,name=avg-resources-per-node') - mean_failed_commands = get_or_abort(puppetdb.metric, - 'com.puppetlabs.puppetdb.command:type=global,name=fatal') - mean_command_time = get_or_abort(puppetdb.metric, - 'com.puppetlabs.puppetdb.command:type=global,name=processing-time') metrics = { 'num_nodes': num_nodes['Value'], 'num_resources': num_resources['Value'], 'avg_resources_node': "{0:10.6f}".format(avg_resources_node['Value']), - 'mean_failed_commands': mean_failed_commands['MeanRate'], - 'mean_command_time': "{0:10.6f}".format(mean_command_time['MeanRate']), } latest_event_count = puppetdb._query('aggregate-event-counts', query='["=", "latest-report?", true]', summarize_by='certname') diff --git a/puppetboard/templates/index.html b/puppetboard/templates/index.html index e11489b..d3c0c9d 100644 --- a/puppetboard/templates/index.html +++ b/puppetboard/templates/index.html @@ -38,18 +38,6 @@ -
-
-
-

{{metrics['mean_failed_commands']}}

- Mean command failures -
-
-

{{metrics['mean_command_time']}}s

- Mean command execution time -
-
-