Skip to main content

Table

The table panel displays query results as a simple key-value list. It has no additional configuration.

Expected Columns

ColumnTypeDescription
valuestring/numberValue displayed on the right (required)
First non-value columnstringLabel displayed on the left (required)

Example

table.yaml
apiVersion: mission-control.flanksource.com/v1
kind: View
metadata:
name: table
namespace: mc
spec:
queries:
deployments:
configs:
types:
- "Kubernetes::Deployment"
tagSelector: namespace=default
panels:
- name: Deployments by Namespace
description: List of all the deployments in the default namespace
type: table
query: SELECT COUNT(*) AS value, tags->>'namespace' AS namespace FROM deployments GROUP BY tags->'namespace'