Config Queries
Config queries fetch configuration items from the Flanksource catalog.
Query Properties
| Property | Type | Description |
|---|---|---|
types | array | Config types to query (e.g., ["Kubernetes::Pod"]) |
search | string | Free text search (supports @order= for sorting) |
status | string | Filter by status |
health | string | Filter by health status |
tagSelector | string | Filter by tags (e.g., environment=prod,team=platform) |
labelSelector | string | Filter by Kubernetes-style labels |
agent | string | Filter by agent ID (use all for all agents) |
limit | integer | Maximum results to return |
Example
cronjobs.yamlapiVersion: mission-control.flanksource.com/v1
kind: View
metadata:
name: cronjobs
namespace: mc
spec:
display:
title: CronJobs
icon: cronjob
sidebar: true
columns:
- name: id
type: string
primaryKey: true
hidden: true
- name: name
type: config_item
- name: namespace
type: string
- name: status
type: status
badge:
color:
auto: true
filter:
type: multiselect
- name: health
type: health
hidden: true
filter:
type: multiselect
- name: created
type: datetime
queries:
cronjobs:
configs:
search: "@order=name"
types:
- Kubernetes::CronJob
mapping:
created: row.created_at
namespace: row.tags.namespace
Auto-Mapped Columns
Config queries provide these columns:
id,name,type,namespace- Core identifiersstatus,health- Current statecreated_at,updated_at- Timestampsconfig- Raw configuration (JSON)properties,tags,labels- Metadatacost_total_1d,cost_total_7d,cost_total_30d- Cost dataparent_id,parent_name,parent_type- Relationships