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
# https://github.com/rama-nallamilli/kafka-prometheus-monitoring | |
# https://github.com/Yolean/kubernetes-kafka/blob/master/prometheus/10-metrics-config.yml | |
lowercaseOutputName: true | |
rules: | |
- pattern : kafka.network<type=Processor, name=IdlePercent, networkProcessor=(.+)><>Value | |
- pattern : kafka.network<type=RequestMetrics, name=RequestsPerSec, request=(.+)><>OneMinuteRate | |
- pattern : kafka.network<type=SocketServer, name=NetworkProcessorAvgIdlePercent><>Value | |
- pattern : kafka.server<type=ReplicaFetcherManager, name=MaxLag, clientId=(.+)><>Value | |
- pattern : kafka.server<type=BrokerTopicMetrics, name=(.+), topic=(.+)><>OneMinuteRate |
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
# https://github.com/rama-nallamilli/kafka-prometheus-monitoring | |
# https://github.com/Yolean/kubernetes-kafka/blob/master/prometheus/10-metrics-config.yml | |
lowercaseOutputName: true | |
rules: | |
- pattern : kafka.network<type=Processor, name=IdlePercent, networkProcessor=(.+)><>Value | |
- pattern : kafka.network<type=RequestMetrics, name=RequestsPerSec, request=(.+)><>OneMinuteRate | |
- pattern : kafka.network<type=SocketServer, name=NetworkProcessorAvgIdlePercent><>Value | |
- pattern : kafka.server<type=ReplicaFetcherManager, name=MaxLag, clientId=(.+)><>Value | |
- pattern : kafka.server<type=BrokerTopicMetrics, name=(.+), topic=(.+)><>OneMinuteRate |
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
#!/usr/bin/env python | |
from optparse import OptionParser | |
from brod.zk import * | |
import pickle | |
import struct | |
import socket | |
import sys | |
import time | |