grafyaml/tests/schema/fixtures/dashboard-0017.yaml
Ian Wienand e6c7095c6b Add valueMaps and rangeMaps support
These allow you to specify custom text instead of displayed values

Change-Id: I7e5c6067c0b0d26edc18120283bad30887df0663
2019-02-21 10:06:35 +11:00

30 lines
753 B
YAML

dashboard:
title: New dashboard
rows:
- title: New row
height: 250px
panels:
- title: no title (click here)
type: singlestat
timeFrom: 10d
timeShift: 1h
hideTimeOverride: true
gauge:
maxValue: 100
minValue: 0
show: true
thresholdLabels: false
thresholdMarkers: true
valueMaps:
- value: 0
text: 'OK'
- value: 1
text: 'NOT OK'
rangeMaps:
- from: 2
to: 3
text: 'TWOTHREE'
- from: 4
to: 5
text: 'FOURFIVE'