This repository has been archived by the owner on Aug 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Singlestat
ricoberger edited this page Apr 21, 2020
·
1 revision
width: <int>
type: <string>
title: <string>
queries: [ <query> ]
options: <options>
-
width
: Width of the graph in the row. Must be a value between0
and100
. The sum of all values in a row should be100
. -
type
: The type must besinglestat
for a singlestat. -
title
: Title of the Graph.
query: <string>
label: <string>
-
query
: Query to retrieve the data from the selected datasource. -
label
: This field is not used for singlestats.
unit: <string>
stats: [ <string> ]
decimals: <int>
thresholds: [ <float> ]
colors: [ <string> ]
mappings <map[string]string>
-
unit
: Unit which should be shown for the metric. -
stats
: Array of stats which should be shown. The default value iscurrent
. For a singlestat only the first value of the array is used. -
decimals
: Number of decimals which should be shown for the value of the metric. -
thresholds
: Threshold which are used for the different colors. The length of the array must be the length ofcolors - 1
. -
colors
: Colors for the metrics. The array length must be the length ofthresholds + 1
. -
mappings
: Mappings allows you to overwrite a returned value.