Skip to content

Commit

Permalink
Merge pull request #57 from k0ste/newfeature
Browse files Browse the repository at this point in the history
Fixed work with luminous 12.2.2 introduced by mon_health_preluminous_compat_warning option.
  • Loading branch information
Crapworks authored Dec 9, 2017
2 parents c41a2d8 + 61c9c6a commit eeeff3c
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions app/static/js/ceph.dash.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $(function () {
position: 'bottom-center'
},
geometry: {
startAngle: 180,
startAngle: 180,
endAngle: 0
},
margin: {
Expand All @@ -46,7 +46,7 @@ $(function () {
]
},
scale: {
startValue: 0,
startValue: 0,
endValue: 100,
majorTick: {
tickInterval: 20
Expand Down Expand Up @@ -118,7 +118,7 @@ $(function () {
percentPrecision: 2,
font: { size: 14, color: '#1c1e22', family: 'Helvetica' },
arrowLength: 10,
customizeText: function() {
customizeText: function() {
return this.valueText + " - " + this.argumentText + " (" + this.percentText + ")";
}
},
Expand Down Expand Up @@ -309,20 +309,21 @@ $(function () {

// *overall status*
clusterStatusOverall = data['health']['overall_status'];
if (data['health']['status'] || false) {
clusterStatusOverall = data['health']['status'];
}
clusterHealthSummary = [];
if (data['health']['summary'] || false) {
$.each(data['health']['summary'], function(index, check) {
clusterHealthSummary.push(check['summary']);
});
if (data['health']['status'] || false) {
clusterStatusOverall = data['health']['status'];
}
clusterHealthSummary = [];
if (data['health']['checks'] || false) {
$.each(data['health']['checks'], function(index, check) {
clusterHealthSummary.push(check['summary']['message']);
});
}
else if (data['health']['summary'] || false) {
$.each(data['health']['summary'], function(index, check) {
clusterHealthSummary.push(check['summary']);
});
}


// *monitor state*
monmapMons = data['monmap']['mons'];
Expand Down

0 comments on commit eeeff3c

Please sign in to comment.