./get-prom-metric-tree.py https://myprom.com 5
should dump the top 5 metric roots. When run against our prom...
{
"kube": {
"tree_count": 104
},
"stuff": {
"tree_count": 14896
},
"nginx": {
"tree_count": 14189
},
"node": {
"tree_count": 915
},
"redis": {
"tree_count": 75
}
}
./get-prom-metric-tree.py https://myprom.com 5 2
would dump more context from the tree