Commit 26478e4e authored by Owais Razi Uddin's avatar Owais Razi Uddin

updating elk dashboard

parent 661b92b6
Pipeline #4385 passed with stages
in 4 seconds
......@@ -31,14 +31,21 @@ grafana.dashboard.new(
)
.addRow(
row.new(
title='Clusters',
height='125px',
title='Clusters',
height='125px',
)
.addPanel(
singlestat.new(
'Running Nodes',
'Running Nodes',
span=4,
valueName='current'
valueName='current',
colors=[
'#40e3ad',
'rgba(237, 129, 40, 0.89)',
'#d44a3a',
],
colorBackground='#40e3ad',
thresholds='10,90'
)
.addTarget(
prometheus.target(
......@@ -47,18 +54,18 @@ grafana.dashboard.new(
)
)
)
.addPanel(
.addPanel(
singlestat.new(
'Active Data Nodes',
span=4,
valueName='current',
colors=[
'#40e3ad',
'rgba(237, 129, 40, 0.89)',
'#d44a3a',
],
'#40e3ad',
'rgba(237, 129, 40, 0.89)',
'#d44a3a',
],
colorBackground='#40e3ad',
thresholds="10,90"
thresholds='10,90'
)
.addTarget(
prometheus.target(
......@@ -67,18 +74,18 @@ grafana.dashboard.new(
)
)
)
.addPanel(
.addPanel(
singlestat.new(
'Pending task',
span=4,
valueName='current',
colors=[
'#40e3ad',
'rgba(237, 129, 40, 0.89)',
'#d44a3a',
],
'#40e3ad',
'rgba(237, 129, 40, 0.89)',
'#d44a3a',
],
colorBackground='#40e3ad',
thresholds="10,90"
thresholds='10,90'
)
.addTarget(
prometheus.target(
......@@ -90,7 +97,7 @@ grafana.dashboard.new(
)
.addRow(
row.new(
title='Shards',
title='Shards',
height='125px',
)
.addPanel(
......@@ -99,12 +106,12 @@ grafana.dashboard.new(
span=4,
valueName='current',
colors=[
'#FF0000',
'rgba(237, 129, 40, 0.89)',
'#d44a3a',
],
colorBackground='#FF0000',
thresholds="10,90",
'#FF0000',
'rgba(237, 129, 40, 0.89)',
'#d44a3a',
],
colorBackground='#FF0000',
thresholds='10,90',
)
.addTarget(
prometheus.target(
......@@ -113,18 +120,18 @@ grafana.dashboard.new(
)
)
)
.addPanel(
.addPanel(
singlestat.new(
'Active Primary Shards',
span=4,
valueName='current',
colors=[
'#FF0000',
'rgba(237, 129, 40, 0.89)',
'#d44a3a',
],
colorBackground='#FF0000',
thresholds="10,90",
colors=[
'#FF0000',
'rgba(237, 129, 40, 0.89)',
'#d44a3a',
],
colorBackground='#FF0000',
thresholds='10,90',
)
.addTarget(
prometheus.target(
......@@ -133,18 +140,18 @@ grafana.dashboard.new(
)
)
)
.addPanel(
.addPanel(
singlestat.new(
'Unassigned Shards',
span=4,
valueName='current',
colors=[
'#FF0000',
'rgba(237, 129, 40, 0.89)',
'#d44a3a',
],
span=4,
valueName='current',
colors=[
'#FF0000',
'rgba(237, 129, 40, 0.89)',
'#d44a3a',
],
colorBackground='#FF0000',
thresholds="10,90"
thresholds='10,90'
)
.addTarget(
prometheus.target(
......@@ -181,8 +188,8 @@ grafana.dashboard.new(
datasource='$server',
)
)
)
.addPanel(
)
.addPanel(
graphPanel.new(
'Index Size',
span=6,
......@@ -205,9 +212,9 @@ grafana.dashboard.new(
datasource='$server',
)
),
gridPos = { h: 9, w: 12, x: 0, y: 18}
)
.addPanel(
gridPos={ h: 9, w: 12, x: 0, y: 18 }
)
.addPanel(
graphPanel.new(
'Documents Indexed Rate',
span=6,
......@@ -231,8 +238,8 @@ grafana.dashboard.new(
datasource='$server',
)
)
)
.addPanel(
)
.addPanel(
graphPanel.new(
'Query Rate',
span=6,
......@@ -255,10 +262,10 @@ grafana.dashboard.new(
datasource='$server',
)
)
)
)
)
.addRequired('grafana', 'grafana', 'Grafana', '5.0.0')
.addRequired('panel', 'graph', 'Graph', '5.0.0')
.addRequired('datasource', 'prometheus', 'Prometheus', '5.0.0')
.addRequired('panel', 'singlestat', 'Singlestat', '5.0.0')
\ No newline at end of file
.addRequired('panel', 'singlestat', 'Singlestat', '5.0.0')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment