Commit 932c0eb2 authored by Owais Razi Uddin's avatar Owais Razi Uddin

changing dashboard for spring boot app

parent 77ee1210
Pipeline #4438 passed with stages
in 8 seconds
......@@ -38,14 +38,7 @@ grafana.dashboard.new(
singlestat.new(
'Running Nodes',
span=4,
valueName='current',
colors=[
'#40e3ad',
'rgba(237, 129, 40, 0.89)',
'#d44a3a',
],
colorBackground='#40e3ad',
thresholds='10,90'
valueName='current'
)
.addTarget(
prometheus.target(
......
......@@ -239,4 +239,126 @@ grafana.dashboard.new(
),
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 }
)
)
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