{% extends 'layout-single.html' %} {% from 'highcharts.html' import chart %} {% block title %}Cluster Health!{% endblock %} {% block content %}
{{ chart( title='Skynet versions', subtitle='Current', url='/chart/skynet/current-versions', style='height: 500px', type='column', OPTS=" title: { text: 'Skynet versions' }, subtitle: { text: 'Current' }, legend: { enabled: false }, yAxis: { title: { text: 'Total installed' }, type: 'logarithmic', minorTickInterval: 0.1, }, xAxis: { labels: {align: 'left', rotation: 45, style: { fontWeight: 'normal' }} }, plotOptions: { series: { shadow: true, cursor: 'pointer', point: { events: { click: function() { document.location.href = '/versions/' + this.category } } }, }, }, legend: { align: 'right', verticalAlign: 'top', floating: true, borderWidth: 1, shadow: true }, ", ) }}

{% for version, url, alive, dead in skynetVersions %} {% set total = alive + dead %} {% set dp = dead / total * 100 %} {% set ap = alive / total * 100 %} {% endfor %}
Version Count Count (alive) Count (died)
{{ version }} {{ total }} {{ alive }} {{ '%0.2f' % ap }}% {{ dead }} {{ '%0.2f' % dp }}%
Totally know about {{ numfmt('%d', stats[0]) }} hosts: {{ numfmt('%d', stats[1]) }} ({{ '%0.2f' % (stats[1] / stats[0] * 100) }}%) alive and {{ numfmt('%d', stats[2]) }} ({{ '%0.2f' % (stats[2] / stats[0] * 100) }}%) dead.
Generate Outdated Hosts Report
{% endblock %}