%
# This template can be configure the following way with environment variables
# Environment variables to filter services/instances
# SERVICES_TAG_FILTER: basic tag filter for service (default HTTP)
services_tag_filter = ENV['SERVICES_TAG_FILTER']
def status_to_class(status)
if status == 'passing'
'success'
elsif status == 'warning'
'warning'
elsif status == 'critical'
'danger'
else
'info'
end
end
%>
<%= render_file 'common/header.html.erb' %>
<% require 'base64'
require 'json'
require 'date'
%>
List of all datacenters
<% datacenters.each do |dc| %>
<%= dc %> with <%= services(dc:dc).keys.count %> services, <%= nodes(dc:dc).count %> nodes