Total Environments

<%= total_environments %>
+<%= enabled_count %> enabled

Enabled

<%= enabled_count %>
<%= total_environments > 0 ? ((enabled_count / total_environments * 100).toFixed(1)) : 0 %>% of total

Providers

<%= total_providers %>
Multi-cloud

Active Alerts

<%= alerts.length %>
<%= alerts.length > 0 ? alerts.length + ' unacknowledged' : 'All clear' %>
<% if (alerts && alerts.length > 0) { %>

Recent Alerts

<% alerts.slice(0, 5).forEach(alert => { %>
<%= alert.environment %>: <%= alert.message %> <%= alert.timestamp.substring(0, 19) %>
<% }); %>
<% } %> <% if (recent_deployments && recent_deployments.length > 0) { %>

Recent Deployments

<% recent_deployments.forEach(deployment => { %>
<%= deployment.environment %> <%= (deployment.strategy || '').toUpperCase() %> - <%= deployment.version || 'N/A' %>
<%= (deployment.status || '').toUpperCase() %>
<% }); %>
<% } %> <% Object.keys(by_provider).forEach(provider => { %> <% const envs = by_provider[provider]; %>

<%= provider.toUpperCase() %> Environments

<%= envs.length %> environment(s)
<% envs.forEach(env => { %>

<%= env.name %>

Role: <%= (env.role || '').charAt(0).toUpperCase() + (env.role || '').slice(1) %>
Region: <%= env.region %>
Location: <%= env.location %>
<% if (env.enabled && env_statuses[env.name]) { %> <% const status = env_statuses[env.name]; %>
<%= (status.status || '').charAt(0).toUpperCase() + (status.status || '').slice(1) %>
CPU
<%= status.cpu_usage_percent %>%
Memory
<%= status.memory_usage_percent %>%
Nodes
<%= status.node_count %>
Pods
<%= status.pods_running %>/<%= status.pods_total %>
<% } %>
View <% if (env.enabled) { %> <% } %>
<% }); %>
<% }); %>