Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

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 between 0 and 100. The sum of all values in a row should be 100.
  • type: The type must be singlestat for a singlestat.
  • title: Title of the Graph.

Query

query: <string>
label: <string>
  • query: Query to retrieve the data from the selected datasource.
  • label: This field is not used for singlestats.

Options

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 is current. 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 of colors - 1.
  • colors: Colors for the metrics. The array length must be the length of thresholds + 1.
  • mappings: Mappings allows you to overwrite a returned value.
Clone this wiki locally