Skip to content

Instantly share code, notes, and snippets.

View nickvsnetworking's full-sized avatar
💭
Dialtone.

Nick nickvsnetworking

💭
Dialtone.
View GitHub Profile
@nickvsnetworking
nickvsnetworking / kamailio_shm_to_prom_grafana.json
Created March 10, 2025 21:37
Kamailio SHM Grafana Dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
@nickvsnetworking
nickvsnetworking / kamailio_shm_to_prom.py
Created March 10, 2025 21:24
Kamailio Shared Memory to Prometheus Exporter
# Script to dump Kamailio shared memory stats to Prometheus
# Nick Jones - 2025
#Writeup about what this does and why it's here is at:
# https://nickvsnetworking.com/profiling-kamailio-module-memory-usage/
import time
import subprocess
import re
from prometheus_client import start_http_server, Gauge