This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |