Commit 77ee1210 authored by Owais Razi Uddin's avatar Owais Razi Uddin

updating sprinboot dashboard

parent 26478e4e
Pipeline #4434 passed with stages
in 7 seconds
...@@ -13,23 +13,22 @@ local graphPanel = grafana.graphPanel; ...@@ -13,23 +13,22 @@ local graphPanel = grafana.graphPanel;
local template_cmn = import '../common/datasource_common.libsonnet'; local template_cmn = import '../common/datasource_common.libsonnet';
local steps = [ local steps = [
{color: 'green', value: 0, op: 'gt'}, { color: 'green', value: 0, op: 'gt' },
{color: 'orange', value: 52428800, op: 'gt'}, { color: 'orange', value: 52428800, op: 'gt' },
{color: 'red', value: 419430400, op: 'gt'}, { color: 'red', value: 419430400, op: 'gt' },
]; ];
local steps_1 = [ local steps_1 = [
{color: 'green', value: 0, op: 'gt'}, { color: 'green', value: 0, op: 'gt' },
{color: 'orange', value: 21474836480, op: 'gt'}, { color: 'orange', value: 21474836480, op: 'gt' },
{color: 'red', value: 42949672960, op: 'gt'}, { color: 'red', value: 42949672960, op: 'gt' },
]; ];
local steps_2 = [ local steps_2 = [
{color: 'green', value: 10, text: 'High'}, { color: 'green', value: 10, text: 'High' },
{color: 'green', value: 20, text: 'Low', }, { color: 'green', value: 20, text: 'Low' },
]; ];
grafana.dashboard.new( grafana.dashboard.new(
'SpringBoot App Dashboard', 'SpringBoot App Dashboard',
...@@ -41,7 +40,7 @@ grafana.dashboard.new( ...@@ -41,7 +40,7 @@ grafana.dashboard.new(
) )
.addTemplate( .addTemplate(
template_cmn.dataSourceTemplate template_cmn.dataSourceTemplate
) )
.addTemplate( .addTemplate(
template.new( template.new(
'instance', 'instance',
...@@ -94,7 +93,7 @@ grafana.dashboard.new( ...@@ -94,7 +93,7 @@ grafana.dashboard.new(
datasource='Prometheus', datasource='Prometheus',
) )
), ),
gridPos = { h: 5, w: 30, x: 0, y: 0} gridPos={ h: 5, w: 30, x: 0, y: 0 }
).addPanel( ).addPanel(
graphPanel.new( graphPanel.new(
'System Load', 'System Load',
...@@ -118,13 +117,14 @@ grafana.dashboard.new( ...@@ -118,13 +117,14 @@ grafana.dashboard.new(
datasource='Prometheus', datasource='Prometheus',
) )
), ),
gridPos = { h: 5, w: 30, x: 0, y: 0} gridPos={ h: 5, w: 30, x: 0, y: 0 }
) )
).addRow( ).addRow(
row.new( row.new(
'Thread Information', 'Thread Information',
).addPanel( ).addPanel(
grafana.statPanel.new('Stat Panel representation of Jvm Threads state', grafana.statPanel.new(
'Stat Panel representation of Jvm Threads state',
datasource='Prometheus', datasource='Prometheus',
allValues=false, allValues=false,
colorMode='background', colorMode='background',
...@@ -140,7 +140,8 @@ grafana.dashboard.new( ...@@ -140,7 +140,8 @@ grafana.dashboard.new(
), ),
gridPos={ h: 5, w: 30, x: 0, y: 20 } gridPos={ h: 5, w: 30, x: 0, y: 20 }
).addPanel( ).addPanel(
grafana.statPanel.new('JVM Memory Max Bytes', grafana.statPanel.new(
'JVM Memory Max Bytes',
datasource='Prometheus', datasource='Prometheus',
allValues=false, allValues=false,
colorMode='background', colorMode='background',
...@@ -156,7 +157,8 @@ grafana.dashboard.new( ...@@ -156,7 +157,8 @@ grafana.dashboard.new(
), ),
gridPos={ h: 5, w: 30, x: 0, y: 20 } gridPos={ h: 5, w: 30, x: 0, y: 20 }
).addPanel( ).addPanel(
grafana.statPanel.new('Server Requests Count', grafana.statPanel.new(
'Server Requests Count',
datasource='Prometheus', datasource='Prometheus',
allValues=false, allValues=false,
colorMode='background', colorMode='background',
...@@ -172,7 +174,7 @@ grafana.dashboard.new( ...@@ -172,7 +174,7 @@ grafana.dashboard.new(
), ),
gridPos={ h: 5, w: 30, x: 0, y: 20 } gridPos={ h: 5, w: 30, x: 0, y: 20 }
) )
).addRow( ).addRow(
row.new( row.new(
'Basic Stats', 'Basic Stats',
) )
...@@ -185,7 +187,7 @@ grafana.dashboard.new( ...@@ -185,7 +187,7 @@ grafana.dashboard.new(
postfix='', postfix='',
colorBackground=true, colorBackground=true,
colorValue=false, colorValue=false,
thresholds="10,25", thresholds='10,25',
colors=[ colors=[
'rgba(237, 129, 40, 0.89)', 'rgba(237, 129, 40, 0.89)',
'#00FF00', '#00FF00',
...@@ -198,7 +200,9 @@ grafana.dashboard.new( ...@@ -198,7 +200,9 @@ grafana.dashboard.new(
datasource='Prometheus', datasource='Prometheus',
) )
) )
).addPanel(gaugePanel.new('Jvm buffer capacity', ).addPanel(
gaugePanel.new(
'Jvm buffer capacity',
datasource='Prometheus', datasource='Prometheus',
min=0, min=0,
max=1073741824, max=1073741824,
...@@ -215,7 +219,9 @@ grafana.dashboard.new( ...@@ -215,7 +219,9 @@ grafana.dashboard.new(
) )
), ),
gridPos={ h: 5, w: 30, x: 0, y: 0 } gridPos={ h: 5, w: 30, x: 0, y: 0 }
).addPanel(gaugePanel.new('Jvm Memory Max Bytes', ).addPanel(
gaugePanel.new(
'Jvm Memory Max Bytes',
datasource='Prometheus', datasource='Prometheus',
min=0, min=0,
max=53687091200, max=53687091200,
...@@ -233,127 +239,4 @@ grafana.dashboard.new( ...@@ -233,127 +239,4 @@ grafana.dashboard.new(
), ),
gridPos={ h: 15, w: 30, x: 0, y: 0 } gridPos={ h: 15, w: 30, x: 0, y: 0 }
) )
) )
.addRow(
row.new(
'HikariCP Statistics',
)
.addPanel(
singleStat.new(
'Connection Size',
span=6,
prefix='',
postfix='',
colorBackground=true,
colorValue=false,
thresholds="10,25",
colors=[
'rgba(237, 129, 40, 0.89)',
'#00FF00',
'green',
]
)
.addTarget(
prometheus.target(
'hikaricp_connections{env="$env",job="$job",instance="$instance"}',
datasource='Prometheus',
)
)
)
.addPanel(
singleStat.new(
'Connection Timeout Count',
span=6,
prefix='',
postfix='',
colorBackground=true,
colorValue=false,
thresholds="10,25",
colors=[
'rgba(237, 129, 40, 0.89)',
'#00FF00',
'green',
]
)
.addTarget(
prometheus.target(
'hikaricp_connections_timeout_total{env="$env",job="$job",instance="$instance"}',
datasource='Prometheus',
)
)
)
.addPanel(
graphPanel.new(
'Connection Creation Time',
span=4,
fill=1,
min=0,
format='s',
legend_values=true,
legend_min=true,
legend_max=true,
legend_current=true,
legend_total=false,
legend_avg=true,
legend_alignAsTable=true,
)
.addTarget(
prometheus.target(
'hikaricp_connections_creation_seconds_sum/hikaricp_connections_creation_seconds_count',
legendFormat='Connection Creation Time',
datasource='Prometheus',
)
),
gridPos = { h: 5, w: 30, x: 0, y: 0}
)
.addPanel(
graphPanel.new(
'Connection Usage Time',
span=4,
fill=1,
min=0,
format='s',
legend_values=true,
legend_min=true,
legend_max=true,
legend_current=true,
legend_total=false,
legend_avg=true,
legend_alignAsTable=true,
)
.addTarget(
prometheus.target(
'hikaricp_connections_usage_seconds_sum/hikaricp_connections_usage_seconds_count',
legendFormat='Connection Usage Time',
datasource='Prometheus',
)
),
gridPos = { h: 5, w: 30, x: 0, y: 0}
)
.addPanel(
graphPanel.new(
'Connection Acquire Time',
span=4,
fill=1,
min=0,
format='s',
legend_values=true,
legend_min=true,
legend_max=true,
legend_current=true,
legend_total=false,
legend_avg=true,
legend_alignAsTable=true,
)
.addTarget(
prometheus.target(
'hikaricp_connections_acquire_seconds_sum/ hikaricp_connections_acquire_seconds_count',
legendFormat='Connection Usage Time',
datasource='Prometheus',
)
),
gridPos = { h: 5, w: 30, x: 0, y: 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