Skip to main content

Deployment Monitoring

deployments.yaml
apiVersion: mission-control.flanksource.com/v1
kind: View
metadata:
name: deployments
namespace: mc
spec:
display:
title: Helm Releases
icon: rocket
sidebar: true
panels:
- name: Health
description: Helm Releases grouped by health
type: piechart
piechart:
showLabels: true
colors:
healthy: "#28C19B"
unhealthy: "#F04E6E"
query: SELECT COUNT(*) AS count, health FROM helm_releases GROUP BY health
- name: Status
description: Helm Releases grouped by status
type: piechart
piechart:
colors:
InstallSucceeded: "#28C19B"
RollbackSucceeded: "#F4B23C"
UpgradeFailed: "#F04E6E"
UpgradeSucceeded: "#5965F2"
query: SELECT COUNT(*) AS count, status FROM helm_releases GROUP BY status
columns:
- name: id
type: string
description: The id of the deployment.
primaryKey: true
hidden: true
- name: url
type: url
for: application
- name: application
type: string
description: The application name.
- name: namespace
type: string
description: The namespace name.
- name: chart
type: string
description: The chart name.
- name: version
type: string
description: The version of the deployment.
- name: status
type: status
description: The status of the deployment.
- name: health
type: health
description: The health of the deployment.
- name: lastUpdated
type: datetime
description: The last updated time.
queries:
helm_releases:
configs:
types:
- Kubernetes::HelmRelease
mapping:
application: row.name
namespace: row.tags.namespace
chart: row.config.status.history[0].chartName
version: row.config.status.history[0].chartVersion
lastUpdated: row.updated_at
url: >
"/catalog/" + row.id