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( ...@@ -31,14 +31,21 @@ grafana.dashboard.new(
) )
.addRow( .addRow(
row.new( row.new(
title='Clusters', title='Clusters',
height='125px', height='125px',
) )
.addPanel( .addPanel(
singlestat.new( singlestat.new(
'Running Nodes', 'Running Nodes',
span=4, span=4,
valueName='current' valueName='current',
colors=[
'#40e3ad',
'rgba(237, 129, 40, 0.89)',
'#d44a3a',
],
colorBackground='#40e3ad',
thresholds='10,90'
) )
.addTarget( .addTarget(
prometheus.target( prometheus.target(
...@@ -47,18 +54,18 @@ grafana.dashboard.new( ...@@ -47,18 +54,18 @@ grafana.dashboard.new(
) )
) )
) )
.addPanel( .addPanel(
singlestat.new( singlestat.new(
'Active Data Nodes', 'Active Data Nodes',
span=4, span=4,
valueName='current', valueName='current',
colors=[ colors=[
'#40e3ad', '#40e3ad',
'rgba(237, 129, 40, 0.89)', 'rgba(237, 129, 40, 0.89)',
'#d44a3a', '#d44a3a',
], ],
colorBackground='#40e3ad', colorBackground='#40e3ad',
thresholds="10,90" thresholds='10,90'
) )
.addTarget( .addTarget(
prometheus.target( prometheus.target(
...@@ -67,18 +74,18 @@ grafana.dashboard.new( ...@@ -67,18 +74,18 @@ grafana.dashboard.new(
) )
) )
) )
.addPanel( .addPanel(
singlestat.new( singlestat.new(
'Pending task', 'Pending task',
span=4, span=4,
valueName='current', valueName='current',
colors=[ colors=[
'#40e3ad', '#40e3ad',
'rgba(237, 129, 40, 0.89)', 'rgba(237, 129, 40, 0.89)',
'#d44a3a', '#d44a3a',
], ],
colorBackground='#40e3ad', colorBackground='#40e3ad',
thresholds="10,90" thresholds='10,90'
) )
.addTarget( .addTarget(
prometheus.target( prometheus.target(
...@@ -90,7 +97,7 @@ grafana.dashboard.new( ...@@ -90,7 +97,7 @@ grafana.dashboard.new(
) )
.addRow( .addRow(
row.new( row.new(
title='Shards', title='Shards',
height='125px', height='125px',
) )
.addPanel( .addPanel(
...@@ -99,12 +106,12 @@ grafana.dashboard.new( ...@@ -99,12 +106,12 @@ grafana.dashboard.new(
span=4, span=4,
valueName='current', valueName='current',
colors=[ colors=[
'#FF0000', '#FF0000',
'rgba(237, 129, 40, 0.89)', 'rgba(237, 129, 40, 0.89)',
'#d44a3a', '#d44a3a',
], ],
colorBackground='#FF0000', colorBackground='#FF0000',
thresholds="10,90", thresholds='10,90',
) )
.addTarget( .addTarget(
prometheus.target( prometheus.target(
...@@ -113,18 +120,18 @@ grafana.dashboard.new( ...@@ -113,18 +120,18 @@ grafana.dashboard.new(
) )
) )
) )
.addPanel( .addPanel(
singlestat.new( singlestat.new(
'Active Primary Shards', 'Active Primary Shards',
span=4, span=4,
valueName='current', valueName='current',
colors=[ colors=[
'#FF0000', '#FF0000',
'rgba(237, 129, 40, 0.89)', 'rgba(237, 129, 40, 0.89)',
'#d44a3a', '#d44a3a',
], ],
colorBackground='#FF0000', colorBackground='#FF0000',
thresholds="10,90", thresholds='10,90',
) )
.addTarget( .addTarget(
prometheus.target( prometheus.target(
...@@ -133,18 +140,18 @@ grafana.dashboard.new( ...@@ -133,18 +140,18 @@ grafana.dashboard.new(
) )
) )
) )
.addPanel( .addPanel(
singlestat.new( singlestat.new(
'Unassigned Shards', 'Unassigned Shards',
span=4, span=4,
valueName='current', valueName='current',
colors=[ colors=[
'#FF0000', '#FF0000',
'rgba(237, 129, 40, 0.89)', 'rgba(237, 129, 40, 0.89)',
'#d44a3a', '#d44a3a',
], ],
colorBackground='#FF0000', colorBackground='#FF0000',
thresholds="10,90" thresholds='10,90'
) )
.addTarget( .addTarget(
prometheus.target( prometheus.target(
...@@ -181,8 +188,8 @@ grafana.dashboard.new( ...@@ -181,8 +188,8 @@ grafana.dashboard.new(
datasource='$server', datasource='$server',
) )
) )
) )
.addPanel( .addPanel(
graphPanel.new( graphPanel.new(
'Index Size', 'Index Size',
span=6, span=6,
...@@ -205,9 +212,9 @@ grafana.dashboard.new( ...@@ -205,9 +212,9 @@ grafana.dashboard.new(
datasource='$server', datasource='$server',
) )
), ),
gridPos = { h: 9, w: 12, x: 0, y: 18} gridPos={ h: 9, w: 12, x: 0, y: 18 }
) )
.addPanel( .addPanel(
graphPanel.new( graphPanel.new(
'Documents Indexed Rate', 'Documents Indexed Rate',
span=6, span=6,
...@@ -231,8 +238,8 @@ grafana.dashboard.new( ...@@ -231,8 +238,8 @@ grafana.dashboard.new(
datasource='$server', datasource='$server',
) )
) )
) )
.addPanel( .addPanel(
graphPanel.new( graphPanel.new(
'Query Rate', 'Query Rate',
span=6, span=6,
...@@ -255,10 +262,10 @@ grafana.dashboard.new( ...@@ -255,10 +262,10 @@ grafana.dashboard.new(
datasource='$server', datasource='$server',
) )
) )
)
) )
)
.addRequired('grafana', 'grafana', 'Grafana', '5.0.0') .addRequired('grafana', 'grafana', 'Grafana', '5.0.0')
.addRequired('panel', 'graph', 'Graph', '5.0.0') .addRequired('panel', 'graph', 'Graph', '5.0.0')
.addRequired('datasource', 'prometheus', 'Prometheus', '5.0.0') .addRequired('datasource', 'prometheus', 'Prometheus', '5.0.0')
.addRequired('panel', 'singlestat', 'Singlestat', '5.0.0') .addRequired('panel', 'singlestat', 'Singlestat', '5.0.0')
\ No newline at end of file
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