Commit 4837ca6d authored by Rizwan Shakoor's avatar Rizwan Shakoor
parents 8dd911cf 3e8f3850
...@@ -233,5 +233,126 @@ grafana.dashboard.new( ...@@ -233,5 +233,126 @@ grafana.dashboard.new(
), ),
gridPos={ h: 15, w: 30, x: 0, y: 0 } gridPos={ h: 15, w: 30, x: 0, y: 0 }
) )
)
) .addRow(
\ No newline at end of file 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 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_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