Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 25 additions & 15 deletions bitbucket/build-actions-thread-pool-stats.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"enable": true,
"hide": true,
Expand All @@ -32,7 +42,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"description": "The current number of threads in the pool",
"fieldConfig": {
Expand Down Expand Up @@ -112,7 +122,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(com_atlassian_bitbucket_thread_pools_BuildActionsThreadPool_PoolSize{}[5m])",
Expand All @@ -127,7 +137,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"description": "The approximate number of threads that are actively executing tasks",
"fieldConfig": {
Expand Down Expand Up @@ -207,7 +217,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(com_atlassian_bitbucket_thread_pools_BuildActionsThreadPool_ActiveCount{}[5m])",
Expand All @@ -222,7 +232,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"description": "The number of tasks awaiting execution by the thread pool",
"fieldConfig": {
Expand Down Expand Up @@ -302,7 +312,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(com_atlassian_bitbucket_thread_pools_BuildActionsThreadPool_QueueLength{}[5m])",
Expand All @@ -317,7 +327,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"description": "The approximate total number of tasks that have completed execution. Because the states of tasks and threads may change dynamically during computation, the returned value is only an approximation, but one that does not ever decrease across successive calls",
"fieldConfig": {
Expand Down Expand Up @@ -397,7 +407,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(com_atlassian_bitbucket_thread_pools_BuildActionsThreadPool_CompletedTaskCount{}[5m])",
Expand All @@ -412,7 +422,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"description": "The largest number of threads that have ever been simultaneously in the pool",
"fieldConfig": {
Expand Down Expand Up @@ -492,7 +502,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(com_atlassian_bitbucket_thread_pools_BuildActionsThreadPool_LargestPoolSize{}[5m])",
Expand All @@ -507,7 +517,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"description": "The maximum allowed number of threads",
"fieldConfig": {
Expand Down Expand Up @@ -587,7 +597,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(com_atlassian_bitbucket_thread_pools_BuildActionsThreadPool_MaximumPoolSize{}[5m])",
Expand Down Expand Up @@ -619,4 +629,4 @@
"title": "Bitbucket Build actions thread pool stats",
"version": 10,
"weekStart": ""
}
}
44 changes: 27 additions & 17 deletions bitbucket/db-ops.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"annotations": {
"list": [
{
Expand Down Expand Up @@ -31,7 +41,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"description": "Active Connections (in use)",
"fieldConfig": {
Expand Down Expand Up @@ -111,7 +121,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(com_zaxxer_hikari_Pool_bitbucket_ActiveConnections{}[5m])",
Expand All @@ -126,7 +136,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"description": "Idle Connection count",
"fieldConfig": {
Expand Down Expand Up @@ -206,7 +216,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(com_zaxxer_hikari_Pool_bitbucket_IdleConnections{}[5m])",
Expand All @@ -221,7 +231,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"description": "The number of threads waiting for a connection (when all available connections are in use)",
"fieldConfig": {
Expand Down Expand Up @@ -301,7 +311,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(com_zaxxer_hikari_Pool_bitbucket_ThreadsAwaitingConnection{}[5m])",
Expand All @@ -316,7 +326,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"description": "Total Connections",
"fieldConfig": {
Expand Down Expand Up @@ -396,7 +406,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(com_zaxxer_hikari_Pool_bitbucket_TotalConnections{}[5m])",
Expand All @@ -411,7 +421,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"description": "Global number of cached queries successfully retrieved from cache",
"fieldConfig": {
Expand Down Expand Up @@ -491,7 +501,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(org_hibernate_core_bitbucket_core_QueryCacheHitCount{}[5m])",
Expand All @@ -506,7 +516,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"description": "Global number of cacheable entities/collections successfully retrieved from the cache",
"fieldConfig": {
Expand Down Expand Up @@ -586,7 +596,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(org_hibernate_core_bitbucket_core_SecondLevelCacheHitCount{}[5m])",
Expand All @@ -602,7 +612,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"description": "Global number of cached queries not found in cache",
"fieldConfig": {
Expand Down Expand Up @@ -682,7 +692,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(org_hibernate_core_bitbucket_core_QueryCacheMissCount{}[5m])",
Expand All @@ -697,7 +707,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"description": "Global number of cacheable entities/collections not found in the cache and loaded from the database",
"fieldConfig": {
Expand Down Expand Up @@ -777,7 +787,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(org_hibernate_core_bitbucket_core_SecondLevelCacheMissCount{}[5m])",
Expand Down Expand Up @@ -810,4 +820,4 @@
"title": "Bitbucket DB Ops",
"version": 2,
"weekStart": ""
}
}
Loading