Add prometheus main dashboard config
Change-Id: I594ce5914403d2fb7655b69262dfca61bef7cadf
This commit is contained in:
parent
75438bf474
commit
1e62599ad1
2 changed files with 52 additions and 2 deletions
|
@ -7,12 +7,18 @@ dashboard:
|
||||||
datasource: prometheus
|
datasource: prometheus
|
||||||
format: json
|
format: json
|
||||||
template: grafana/files/grafana_dashboards/grafana_prometheus.json
|
template: grafana/files/grafana_dashboards/grafana_prometheus.json
|
||||||
main:
|
main_influxdb:
|
||||||
datasource: influxdb
|
datasource: influxdb
|
||||||
format: yaml
|
format: yaml
|
||||||
base_dashboards: ['grafana:client:base_templates:main_dashboard']
|
base_dashboards: ['grafana:client:base_templates:main_dashboard']
|
||||||
base_rows: ['grafana:client:base_templates:service_row']
|
base_rows: ['grafana:client:base_templates:service_row']
|
||||||
base_panels: ['grafana:client:base_templates:cluster_status_singlestat']
|
base_panels: ['grafana:client:base_templates:cluster_status_singlestat']
|
||||||
|
main_prometheus:
|
||||||
|
datasource: prometheus
|
||||||
|
format: yaml
|
||||||
|
base_dashboards: ['grafana:client:base_templates:prometheus_main_dashboard']
|
||||||
|
base_rows: ['grafana:client:base_templates:service_row']
|
||||||
|
base_panels: ['grafana:client:base_templates:prometheus_cluster_status']
|
||||||
service_level:
|
service_level:
|
||||||
datasource: influxdb
|
datasource: influxdb
|
||||||
format: yaml
|
format: yaml
|
||||||
|
|
|
@ -27,6 +27,50 @@ parameters:
|
||||||
service_row:
|
service_row:
|
||||||
showTitle: true
|
showTitle: true
|
||||||
height: 100px
|
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:
|
cluster_status_singlestat:
|
||||||
span: 2
|
span: 2
|
||||||
editable: false
|
editable: false
|
||||||
|
@ -101,7 +145,7 @@ parameters:
|
||||||
Healthy: "#7EB26D"
|
Healthy: "#7EB26D"
|
||||||
Up: "#7EB26D"
|
Up: "#7EB26D"
|
||||||
Okay: "#7EB26D"
|
Okay: "#7EB26D"
|
||||||
Degraded or Unknwon: "#EAB839"
|
Degraded or Unknown: "#EAB839"
|
||||||
Down: "#890F02"
|
Down: "#890F02"
|
||||||
Error: "#890F02"
|
Error: "#890F02"
|
||||||
Fatal: "#890F02"
|
Fatal: "#890F02"
|
||||||
|
|
Loading…
Reference in a new issue