Skip to content

Instantly share code, notes, and snippets.

@gdecandia
Created April 9, 2015 15:36
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gdecandia/2aad07c810fbf5084206 to your computer and use it in GitHub Desktop.
Prometheus JMX Exporter patterns for MidoNet Agent meters
{
"hostPort": "119.15.127.100:7200,119.15.127.101:7200",
"rules": [
{"pattern": "^meters:device:([0-9a-f-]+)<hostPort=(.+), type=(\w+)><>Value:",
"name": "mndev_$3",
"labels": {"mn_id":"$1", "mn_agent":"$2"},
"type": "COUNTER"},
{"pattern": "^meters:port:(\w+):([0-9a-f-]+)<hostPort=(.+), type=(\w+)><>Value:",
"name": "mnport_$1_$4",
"labels": {"mn_id":"$2", "mn_agent":"$3"},
"type": "COUNTER"},
{"pattern": "^meters:tunnel:([0-9\.]+):([0-9\.]+)<hostPort=(.+), type=(\w+)><>Value:",
"name": "mntun_$4",
"labels": {"src":"$1", "dst":"$2", "mn_agent":"$3"},
"type": "COUNTER"},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment