Created
April 9, 2015 15:36
-
-
Save gdecandia/2aad07c810fbf5084206 to your computer and use it in GitHub Desktop.
Prometheus JMX Exporter patterns for MidoNet Agent meters
This file contains 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
{ | |
"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