Browse Source

Add prometheus main dashboard config

Change-Id: I594ce5914403d2fb7655b69262dfca61bef7cadf
pull/32/head
Martin Polreich 5 years ago committed by Martin Polreich
parent
commit
1e62599ad1
  1. 8
      grafana/meta/grafana.yml
  2. 46
      metadata/service/client/single.yml

8
grafana/meta/grafana.yml

@ -7,12 +7,18 @@ dashboard: @@ -7,12 +7,18 @@ dashboard:
datasource: prometheus
format: json
template: grafana/files/grafana_dashboards/grafana_prometheus.json
main:
main_influxdb:
datasource: influxdb
format: yaml
base_dashboards: ['grafana:client:base_templates:main_dashboard']
base_rows: ['grafana:client:base_templates:service_row']
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:
datasource: influxdb
format: yaml

46
metadata/service/client/single.yml

@ -27,6 +27,50 @@ parameters: @@ -27,6 +27,50 @@ parameters:
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
@ -101,7 +145,7 @@ parameters: @@ -101,7 +145,7 @@ parameters:
Healthy: "#7EB26D"
Up: "#7EB26D"
Okay: "#7EB26D"
Degraded or Unknwon: "#EAB839"
Degraded or Unknown: "#EAB839"
Down: "#890F02"
Error: "#890F02"
Fatal: "#890F02"

Loading…
Cancel
Save