Grafana SaltStack Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

151 lines
4.1 KiB

applications:
- grafana
parameters:
grafana:
client:
enabled: true
base_templates:
main_dashboard:
title: 'Main'
editable: true
hideControls: false
templating:
enable: true
list:
- allFormat: regex values
hide: 0
includeAll: false
name: environment
options: []
query: show tag values from cpu_idle with key = environment_label
refresh: 1
refresh_on_load: true
regex: ''
type: query
sort: 0
multi: false
service_row:
showTitle: true
height: 100px
prometheus_main_dashboard:
title: 'Main'
editable: true
hideControls: false
prometheus_cluster_status:
span: 2
editable: false
type: singlestat
prefixFontSize: "50%"
postfixFontSize: "50%"
colorBackground: true
colors:
- "rgba(225, 40, 40, 0.59)"
- "rgba(245, 150, 40, 0.73)"
- "rgba(71, 212, 59, 0.4)"
thresholds: "0.01,1"
interval: "> 60s"
sparkline:
fillColor: "rgba(31, 118, 189, 0.18)"
full: false
lineColor: "rgb(31, 120, 193)"
show: false
valueFontSize: "50%"
mappingType: 2
rangeMaps:
- from: "null"
text: "no data"
to: "null"
- from: "0"
text: "DOWN"
to: "0"
- from: "0.01"
text: "CRIT"
to: "0.5"
- from: "0.51"
text: "WARN"
to: "0.99"
- from: "1"
text: "UP"
to: "1"
- from: "2"
text: "UNKW"
to: "2"
valueName: current
cluster_status_singlestat:
span: 2
editable: false
type: singlestat
prefixFontSize: "50%"
postfixFontSize: "50%"
colorBackground: true
colors:
- "rgba(71, 212, 59, 0.4)"
- "rgba(245, 150, 40, 0.73)"
- "rgba(225, 40, 40, 0.59)"
thresholds: "1,3"
interval: "> 60s"
sparkline:
fillColor: "rgba(31, 118, 189, 0.18)"
full: false
lineColor: "rgb(31, 120, 193)"
show: false
valueFontSize: "50%"
valueMaps:
- op: "="
text: "no data"
value: "null"
- op: "="
text: "OKAY"
value: "0"
- op: "="
text: "WARN"
value: "1"
- op: "="
text: "UNKW"
value: "2"
- op: "="
text: "CRIT"
value: "3"
- op: "="
text: "DOWN"
value: "4"
valueName: current
service_level_dashboard:
title: 'Service Level Indicators'
editable: true
hideControls: false
templating:
enable: true
list:
- allFormat: regex values
hide: 0
includeAll: false
name: environment
options: []
query: show tag values from cpu_idle with key = environment_label
refresh: 1
refresh_on_load: true
regex: ''
type: query
sort: 0
multi: false
service_level_row:
showTitle: true
height: 200px
service_level_piechart:
span: 3
type: 'grafana-piechart-panel'
legend:
percentage: true
show: true
sortDesc: true
values: true
legendType: Under graph
aliasColors:
Healthy: "#7EB26D"
Up: "#7EB26D"
Okay: "#7EB26D"
Degraded or Unknown: "#EAB839"
Down: "#890F02"
Error: "#890F02"
Fatal: "#890F02"