Dashboard YAML structure

Full commands Examples Directory


command

Required

Dict

 typedescriptiondefaultrequired
nameString
Command name True
description
StringCommand description False
variablesListList of variables with optional CLI arguments False
executeDictData type to execute True

Variables

Optional

List

Example

variables:
  - name: namespace
    default: .*
    cliArgument:
      enable: true
      short: -n
      required: false
  - name: pod
    default: .*
    cliArgument:
      enable: true
      short: -po
      required: false
 typedescriptiondefaultrequired
nameStringvariable name ,, also used for the CLI argument name True
default
Stringdevault value for the variable True
cliArgument
DictCLI argument options for the variable
False

cliArgument

Optional

Dict

 typedescriptiondefaultrequired
enableBooleanEnable CLI argument for the variable True
short
Stringshort for the argument True
required
BooleanWether the argument is required to run the commandFalseFalse

execute

Required

Dict

 typedescriptiondefaultrequired
type
String
Data type
Options: [advancedTable]
 True
advancedTableColumns
ListRequired with ​advancedTable​ Data type
List of metrics, where each metric represent a column on the table
 True
custom_keyStringcustom key for the metric result key,

default labels result string composed of summed labels .. ex. sum(metric) by (pod, namespace)False
executeadvancedTableOptionsDictGraph options with advancedTable data type False


advancedTableColumns

Required

List

 typedescriptiondefaultrequired
COULMN NAME
EX: - memory usage:
StringColumn name (User Input name)plainTrue
metric
StringPrometheus metric to qurey
True
metricUnitStringmetric result value unit
Options: [None, kb, byte, mb, gb, tb, seconds, percentage]
byteFalse
autoConvertValue
BooleanAuto convert the metric value based on the metricUnit .. for example, if metric value is in byte, it would be converted to kb, mb, gb .. etc.FalseFalse


advancedTableOptions

Optional

Dict

 typedescriptiondefaultrequired
tableTypeStringTable type - Allowed OptionsplainFalse
showValue
BooleanShow value columnTrueFalse
headersUppercaseBooleanShow the table header in UpecaseTrue
False
autoConvertValue
BooleanAuto convert the metric value based on the metricUnit .. for example, if metric value is in byte, it would be converted to kb, mb, gb .. etc.False
False
showTableIndexBooleanShow table Index on the leftTrue
False
updateIntervalSecondsIntegerData update interval5False