Skip to main content

Config DB

ConfigDB check connects to the specified database host, run a specified query for your configuration data, and return the result.

apiVersion: canaries.flanksource.com/v1
kind: Topology
metadata:
name: cluster
labels:
canary: "kubernetes-cluster"
spec:
type: KubernetesCluster
icon: kubernetes
schedule: "@every 10m"
id:
javascript: properties.id
configs:
- name: flanksource-canary-cluster
type: EKS
components:
- name: nodes
icon: server
owner: infra
id:
javascript: properties.zone + "/" + self.name
type: KubernetesNode
lookup:
configDB:
query: <insert-query>
FieldDescriptionSchemeRequired
authenticationUsername and password value, configMapKeyRef or SecretKeyRef for ConfigDB serverAuthentication
descriptionDescription for the checkstring
displayTemplate to display query results in text (overrides default bar format for UI)Template
hostHost is the server against which check needs to be executedstringYes
iconIcon for overwriting default icon on the dashboardstring
labelsLabels for the checkLabels
nameName of the checkstringYes
queryQuery that needs to be executed on the serverstringYes
testTemplate to test the result againstTemplate
transformTemplate to transform results toTemplate