Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save nickvsnetworking/130ad0c9455ea56c01ec1bcb21b6ed48 to your computer and use it in GitHub Desktop.

Select an option

Save nickvsnetworking/130ad0c9455ea56c01ec1bcb21b6ed48 to your computer and use it in GitHub Desktop.
Kamailio SHM Grafana Dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 36,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "omnicore_prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 24,
"x": 0,
"y": 0
},
"id": 1,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "omnicore_prometheus"
},
"editorMode": "code",
"expr": "kamailio_shm_totals >= 1024*1024",
"instant": false,
"legendFormat": "{{module}}",
"range": true,
"refId": "A"
}
],
"title": "Modules Totals",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "omnicore_prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 10
},
"id": 3,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.0.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "omnicore_prometheus"
},
"editorMode": "builder",
"expr": "sum(kamailio_shm_totals)",
"instant": false,
"legendFormat": "Total Used",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "omnicore_prometheus"
},
"editorMode": "builder",
"expr": "kamailio_shmem_real_used_size{instance=\"opt-dut-pcscf02.epc.mnc380.mcc313.3gppnetwork.org:9090\"}",
"hide": false,
"instant": false,
"legendFormat": "shmem Used",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "omnicore_prometheus"
},
"editorMode": "builder",
"expr": "kamailio_shmem_total_size{instance=\"opt-dut-pcscf02.epc.mnc380.mcc313.3gppnetwork.org:9090\"}",
"hide": false,
"instant": false,
"legendFormat": "shmem Allocated",
"range": true,
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "omnicore_prometheus"
},
"editorMode": "builder",
"expr": "kamailio_shmem_fragments{instance=\"opt-dut-pcscf02.epc.mnc380.mcc313.3gppnetwork.org:9090\"}",
"hide": false,
"instant": false,
"legendFormat": "shmem Fragments",
"range": true,
"refId": "D"
},
{
"datasource": {
"type": "prometheus",
"uid": "omnicore_prometheus"
},
"editorMode": "builder",
"expr": "kamailio_shmem_real_used_size{instance=\"opt-dut-pcscf02.epc.mnc380.mcc313.3gppnetwork.org:9090\"}",
"hide": false,
"instant": false,
"legendFormat": "shmem Real Used",
"range": true,
"refId": "E"
}
],
"title": "Modules Total Memory Usage",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "omnicore_prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 24,
"x": 0,
"y": 16
},
"id": 2,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"range"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.0.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "omnicore_prometheus"
},
"editorMode": "builder",
"expr": "sum by(module) (kamailio_shm_totals > 0)",
"instant": false,
"legendFormat": "{{module}}",
"range": true,
"refId": "A"
}
],
"title": "Modules Deltas",
"type": "stat"
}
],
"refresh": false,
"schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "2025-03-09T08:38:58.632Z",
"to": "2025-03-10T21:25:58.003Z"
},
"timepicker": {},
"timezone": "",
"title": "Kamailio Memory Debug",
"uid": "e40d68b4-dd72-462f-91b6-6a5fecc85c41",
"version": 6,
"weekStart": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment