overview: Cosmetic changes.
* Don't pass unresponsive to the view, access config[] object instead * Remove the statistics header, it only takes up space * Lowercase a few things * Change the descriptions for 'radiator' to make the math work: Because of how PuppetDB's aggregate-events-count works nodes with both successful and failed events count for both causing success + failure + unreported to not equal population, which is weird. Now we're simply stating that they have failed events instead of saying that the node is succesful/failed.
This commit is contained in:
@@ -102,7 +102,7 @@ def index():
|
||||
node.noresponse = str(delta.days) + "d " + str(int(delta.seconds/3600)) +"h " + str(int((delta.seconds%3600)/60))+ "m"
|
||||
unreported.append(node)
|
||||
|
||||
return render_template('index.html', metrics=metrics, latest_event_count=latest_event_count, latest_events=latest_events, unreported=unreported, unreported_time=app.config['UNRESPONSIVE_HOURS'])
|
||||
return render_template('index.html', metrics=metrics, latest_event_count=latest_event_count, latest_events=latest_events, unreported=unreported)
|
||||
|
||||
@app.route('/nodes')
|
||||
def nodes():
|
||||
|
||||
Reference in New Issue
Block a user