Kafka Metrics for Messages Sent Per Second to Topic

2023-05-22 Thread Neeraj Vaidya
Hi All, Which metric should be used when trying to get the number of messages which are being produced to a topic ? I tried this in Prometheus :sum(irate(kafka_server_brokertopicmetrics_messagesin_total{topic="my-topic"}[1m])) This works when I use a non-transactional producer. However, when I

Re: Kafka Metrics to Grafana Labs

2023-04-08 Thread Kafka Life
Any help from these experts ? On Sat, Apr 8, 2023 at 2:23 PM Kafka Life wrote: > Hello Kafka Experts > > Need a help . Currently the grafana agent > triggering kafka/3.2.3/config/kafka_metrics.yml is sending over 5 thousand > metrics. Is there a way to limit these many metrics to be sent and sen

Kafka Metrics to Grafana Labs

2023-04-08 Thread Kafka Life
Hello Kafka Experts Need a help . Currently the grafana agent triggering kafka/3.2.3/config/kafka_metrics.yml is sending over 5 thousand metrics. Is there a way to limit these many metrics to be sent and send only what is required .Any pointers or such customized script is much appreciated.kafka/3

Re: Kafka metrics - Requests.

2023-02-24 Thread Luke Chen
ges sent with >> no batching. >> >> In a good monitoring solution, you should have both metrics as one will >> give you the overall load and the other the topic partition per broker view >> (aka what are your users doing). >> >> what I don't understa

Re: Kafka metrics - Requests.

2023-02-24 Thread David Ballano Fernandez
ive you the overall load and the other the topic partition per broker view > (aka what are your users doing). > > what I don't understand is the batching part of your question. > > If you like to see messages In I would suggest you to use > > > kafka.server:type=Bro

Re: Kafka metrics - Requests.

2023-02-20 Thread Pere Urbón Bayes
messages In I would suggest you to use > kafka.server:type=BrokerTopicMetrics,name=MessagesInPerSec < Aggregate incoming message rate. Sincerely -- Pere On Sat, Feb 18, 2023 at 12:17 AM David Ballano Fernandez < dfernan...@demonware.net> wrote: > Hi guys, > > I am havin

Kafka metrics - Requests.

2023-02-17 Thread David Ballano Fernandez
Hi guys, I am having some confusion around 2 Kafka metrics: *Request rate.* kafka.network:type=RequestMetrics,name=RequestsPerSec,request={Produce|FetchConsumer|FetchFollower} *Produce request rate.* kafka.server:type=BrokerTopicMetrics,name=TotalProduceRequestsPerSec https

Re: Kafka metrics to calculate number of messages in a topic

2021-08-18 Thread Eric Azama
That will get you a good approximation, but it's not guaranteed to be completely accurate. Offsets in Kafka are not guaranteed to be continuous. For topics with log compaction enabled, the removed records will leave (potentially very large) holes in the offsets. Even for topics without log compac

Kafka metrics to calculate number of messages in a topic

2021-08-09 Thread Dhirendra Singh
Hi All, I have a requirement to display the total number of messages in a topic in grafana dashboard. I am looking at the metrics exposed by kafka broker and came across the following metrics. kafka_log_log_logendoffset kafka_log_log_logstartoffset My understanding is that if I take the difference

Re: Kafka metrics

2020-05-13 Thread Eleanore Jin
Hi All, Thanks a lot for the information and suggestion! Eleanore On Tue, May 12, 2020 at 3:24 PM Malcolm McFarland wrote: > These ideas are specific to Samza and ymmv in how they apply to other > processing frameworks, but we use a couple of custom tools to keep tabs on > processing lag: > >

Re: Kafka metrics

2020-05-12 Thread Malcolm McFarland
These ideas are specific to Samza and ymmv in how they apply to other processing frameworks, but we use a couple of custom tools to keep tabs on processing lag: - one is a produce/consume timestamp comparison tool which utilizes writes a message production timestamps out to ZooKeeper on a per-part

Re: Kafka metrics

2020-05-12 Thread Matthias J. Sax
I am not 100% sure what Burrow does, but I would assume that it compares committed offsets to end offsets (similar to `bin/kafka-consumer-group.sh`). This is a "global" view over all consumer in the group. Compare to the consumer metric, the might report a higher lag as it relies on consumer commit

Kafka metrics

2020-05-11 Thread Eleanore Jin
Hi community, I just wonder what is the difference between the consumer lag reported by Kafka client and the consumer lag reported by burrow? Thanks a lot! Eleanore

Re: Kafka metrics attribute meaning

2018-02-24 Thread Manikumar
oheil.i...@gmail.com > > > > > wrote: > > > > > Hi, > > > > > > What is the exact meaning of the Kafka metrics attributes, for example, > > the > > > attribute > > > kafka.server:type=BrokerTopicMetrics,name=BytesInPerSec > >

Re: Kafka metrics attribute meaning

2018-02-24 Thread Soheil Pourbafrani
here : > http://metrics.dropwizard.io/2.2.0/getting-started/ > > > On Sat, Feb 24, 2018 at 8:31 PM, Soheil Pourbafrani > > wrote: > > > Hi, > > > > What is the exact meaning of the Kafka metrics attributes, for example, > the > > attribute > > kaf

Re: Kafka metrics attribute meaning

2018-02-24 Thread Manikumar
ng of the Kafka metrics attributes, for example, the > attribute > kafka.server:type=BrokerTopicMetrics,name=BytesInPerSec > > has the attributes MeanRate and OneMinuteRate. I am confused about the > attribute OneMinuteRate! It is for the last minutes or for the whole broker >

Kafka metrics attribute meaning

2018-02-24 Thread Soheil Pourbafrani
Hi, What is the exact meaning of the Kafka metrics attributes, for example, the attribute kafka.server:type=BrokerTopicMetrics,name=BytesInPerSec has the attributes MeanRate and OneMinuteRate. I am confused about the attribute OneMinuteRate! It is for the last minutes or for the whole broker

Re: Using JMXMP to access Kafka metrics

2017-07-21 Thread Fernando Vega
19, 2017 12:24 PM > To: users@kafka.apache.org > Cc: d...@kafka.apache.org > Subject: Re: Using JMXMP to access Kafka metrics > > I've used jolokia which gets JMX metrics without RMI (actually json over > http) > https://na01.safelinks.protection.outlook.com/

RE: Using JMXMP to access Kafka metrics

2017-07-19 Thread Vijay Prakash
2:24 PM To: users@kafka.apache.org Cc: d...@kafka.apache.org Subject: Re: Using JMXMP to access Kafka metrics I've used jolokia which gets JMX metrics without RMI (actually json over http) https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjolokia.org%2F&data=02%7C01%7CVijay.Prak

Re: Using JMXMP to access Kafka metrics

2017-07-19 Thread Svante Karlsson
ead of RMI to access Kafka metrics through > JMX? I tried creating a JMXMP JMXConnector but the connect attempt just > hangs forever. > > Thanks, > Vijay >

Using JMXMP to access Kafka metrics

2017-07-19 Thread Vijay Prakash
Hey, Is there a way to use JMXMP instead of RMI to access Kafka metrics through JMX? I tried creating a JMXMP JMXConnector but the connect attempt just hangs forever. Thanks, Vijay

Re: Kafka metrics

2017-07-05 Thread Guozhang Wang
Hello Tom, Currently only the client-side packages are using o.a.k.common.metrics for metrics reporting, for broker-side metrics (including LeaderElectionRateAndTimeMs), they are still implemented on yammer metrics ( com.yammer.metrics). Guozhang On Mon, Jul 3, 2017 at 4:20 AM, Tom Dearman wr

Kafka metrics

2017-07-03 Thread Tom Dearman
I have implemented org.apache.kafka.common.metrics.MetricsReporter and set it up using metric.reporters in the server properties. I don’t see all the metrics that I was expecting, for example I don’t see ‘LeaderElectionRateAndTimeMs’. There seems to be another reporter you can implement and the

Kafka metrics to Prometheus

2017-03-02 Thread Yifan Ying
for a customized Counter object, whenever it updates the value, it also updates the value of a corresponding Prometheus object. In this way, we will have a full copy of sample data from Kafka metrics in Prometheus metric object. I would like to know if anyone has this issue and how this should be ha

Kafka metrics always reporting zero

2016-08-21 Thread Anish Mashankar
I am running a distributed connector with a custom MetricReporter class. The metric reporter is able to listen to kafka metrics and is logging them on the console. However, values for all metrics are that are being reported are either zero or infinity. The values do not change for a significant

Re: How does Cloudera manager Collects Kafka Metrics

2016-03-25 Thread Timothy Chen
That's all information available from the jmx endpoints in Kafka. Tim On Fri, Mar 25, 2016 at 1:21 PM, yeshwanth kumar wrote: > can someone explain, how Cloudera manager Collects Kafka Metrics, such as > TotalMessages in a Topic, Total Bytes read and written from and into Kafka. &

How does Cloudera manager Collects Kafka Metrics

2016-03-25 Thread yeshwanth kumar
can someone explain, how Cloudera manager Collects Kafka Metrics, such as TotalMessages in a Topic, Total Bytes read and written from and into Kafka. please let me know Thanks, -Yeshwanth Can you Imagine what I would do if I could do all I can - Art of War

Re: kafka metrics emitting to graphite

2015-10-14 Thread Alexander Pakulov
You can try this plugin: https://github.com/apakulov/kafka-graphite On Sun, Oct 11, 2015 at 3:19 AM, sunil kalva wrote: > How to configure, to emit kafka broker metrics to graphite. > > t > SunilKalva > -- _ Best Regards, Alexander

Re: kafka metrics emitting to graphite

2015-10-12 Thread Ian Kallen
I plan on trying this out https://github.com/airbnb/kafka-statsd-metrics2 but yea, JMXTrans is a good option for getting mbean values into graphite as well. On 10/11/15, 8:18 PM, "sunil kalva" wrote: >tx ben, >i though we have native support for graphite in kafka, i will start >exploring thi

Re: kafka metrics emitting to graphite

2015-10-11 Thread sunil kalva
tx ben, i though we have native support for graphite in kafka, i will start exploring this. On Sun, Oct 11, 2015 at 7:00 PM, Ben Stopford wrote: > Hi Sunil > > Try using JMXTrans to expose Kafka’s internal JMX metrics to graphite. > > https://github.com/jmxtrans/jmxtrans

Re: kafka metrics emitting to graphite

2015-10-11 Thread Ben Stopford
Hi Sunil Try using JMXTrans to expose Kafka’s internal JMX metrics to graphite. https://github.com/jmxtrans/jmxtrans B > On 11 Oct 2015, at 11:19, sunil kalva wrote: > > How to configure, to emit kafka broker metrics to graphite. > > t > SunilKalva

kafka metrics emitting to graphite

2015-10-11 Thread sunil kalva
How to configure, to emit kafka broker metrics to graphite. t SunilKalva

Re: Monitoring kafka metrics

2015-08-13 Thread Rajiv Kurian
t;> >> My config file has the following lines: >> >> kafka.metrics.polling.interval.secs=5 >> kafka.metrics.reporters=kafka.metrics.KafkaCSVMetricsReporter >> kafka.csv.metrics.dir=/var/lib/kafka/metrics/ >> kafka.csv.metrics.reporter.enabled=false >> >>

Re: Monitoring kafka metrics

2015-08-13 Thread Rajiv Kurian
om > the broker that was updated to the new version. > > My config file has the following lines: > > kafka.metrics.polling.interval.secs=5 > kafka.metrics.reporters=kafka.metrics.KafkaCSVMetricsReporter > kafka.csv.metrics.dir=/var/lib/kafka/metrics/ > kafka.csv.metrics.reporter

Monitoring kafka metrics

2015-08-13 Thread Rajiv Kurian
=kafka.metrics.KafkaCSVMetricsReporter kafka.csv.metrics.dir=/var/lib/kafka/metrics/ kafka.csv.metrics.reporter.enabled=false This was working in 0.8.1 but not in 0.8.2.1 When the broker was started I noticed these messages in the logs: 2015-08-13T21:03:29.235Z WARN [main

Re: Kafka metrics: high level vs simple consumer

2015-03-14 Thread Stevo Slavić
* Centralized Log Management > Solr & Elasticsearch Support * http://sematext.com/ > > > On Fri, Feb 27, 2015 at 2:35 AM, Stevo Slavić wrote: > > > Hello Apache Kafka community, > > > > In Kafka 0.8.1.1, are Kafka metrics updated/tracked/marked by simple &g

Re: Kafka metrics: high level vs simple consumer

2015-02-27 Thread Otis Gospodnetic
Kafka 0.8.1.1, are Kafka metrics updated/tracked/marked by simple > consumer implementation or only by high level one? > > Kind regards, > Stevo Slavic. >

Kafka metrics: high level vs simple consumer

2015-02-26 Thread Stevo Slavić
Hello Apache Kafka community, In Kafka 0.8.1.1, are Kafka metrics updated/tracked/marked by simple consumer implementation or only by high level one? Kind regards, Stevo Slavic.

Re: question about jmxtrans to get kafka metrics

2015-01-07 Thread Jaikiran Pai
Hi Sa, Are you really sure "w2" is a real hostname, something that is resolvable from the system where you are running this. The JSON output you posted seems very close to the example from the jmxtrans project page https://code.google.com/p/jmxtrans/wiki/GraphiteWriter, so I suspect you aren'

question about jmxtrans to get kafka metrics

2015-01-07 Thread Sa Li
Hi, All I installed jmxtrans and graphite, wish to be able to graph stuff from kafka, but firstly I start the jmxtrans and getting such errors, (I use the example graphite json). ./jmxtrans.sh start graphite.json [07 Jan 2015 17:55:58] [ServerScheduler_Worker-4] 180214 DEBUG (com.googlecode.jmxt

Re: Kafka metrics: Bytesout greater than Bytesin??

2014-04-30 Thread Jun Rao
In 0.8, we have a MaxLag jmx metrics to monitor the consumer lag. In 0.7, we only have a command line tool ConsumerOffsetChecker. Thanks, Jun On Wed, Apr 30, 2014 at 7:17 AM, Arnaud Lawson wrote: > Jun, > > Thanks for the pointer to the docs. It would be great if more detail like > this discus

Re: Kafka metrics: Bytesout greater than Bytesin??

2014-04-30 Thread Arnaud Lawson
Jun, Thanks for the pointer to the docs. It would be great if more detail like this discussion were included in the Wiki. The detail of each metric is not always clear. For our case (trying to monitor and alert on if the consumer is falling far behind the producer on a specific topic), what would

Re: Kafka metrics: Bytesout greater than Bytesin??

2014-04-29 Thread Jun Rao
Let's say a consumer wants to fetch 1000 bytes and there are two messages in the broker each of 600 bytes. The broker will give 1000 bytes to the consumer. The consumer will only be able to use the first 600 bytes since the remaining 400 bytes doesn't form a full message. 0.7 jmx are documented in

Re: Kafka metrics: Bytesout greater than Bytesin??

2014-04-29 Thread Arnaud Lawson
Thank you Jun, What could a partial message be? A consumer fetching for messages on an empty queue and receiving a message representing that fact? As an example below i just ran a test using the producer & consumer shells and JMXTerm. NumProduceRequests went from 13, 14 to 15 as i added values on

Re: Kafka metrics: Bytesout greater than Bytesin??

2014-04-29 Thread Jun Rao
Is the data consumed more than once from different consumers? If that's not the case, byteout could be a bit larger than bytein since we could return a partial message to the consumer. The partial message will be ignored in the consumer though. Thanks, Jun On Tue, Apr 29, 2014 at 2:13 PM, Arnau

Re: Kafka metrics: Bytesout greater than Bytesin??

2014-04-29 Thread Arnaud Lawson
We are using Kafka 0.7.1 and i believe replication isn't available for this version (correct me if i am wrong)... Basically we want to be able to measure the rate of consumption for some particular topic and make sure that this rate is about the same as the rate of production for that topic. Which

Re: Kafka metrics: Bytesout greater than Bytesin??

2014-04-29 Thread Bae, Jae Hyeon
Are you using 0.8? BytesOut will include the traffic for replication. If you have no consumer and replication factor is 2, BytesOut should be exactly double of BytesIn. On Tue, Apr 29, 2014 at 1:26 PM, Arnaud Lawson wrote: > Hello, > > After graphing the cumulative values of Bytesin and Bytesout

Kafka metrics: Bytesout greater than Bytesin??

2014-04-29 Thread Arnaud Lawson
Hello, After graphing the cumulative values of Bytesin and Bytesout for one of our Kafka topics, we've noticed that the Bytesout values are sometimes greater than the Bytesin values. We are not really sure how this would be possible if the max that a consumer can consume would be what has been put

Re: Using Kafka Metrics

2014-03-21 Thread Dana Powers
Be aware that JMX metrics changed between 0.7 and 0.8. If you use chef, you might also check out https://github.com/bflad/chef-jmxtrans which has recipes for both 0.7 and 0.8 kafka metrics -> graphite. Dana Powers Rdio, Inc. dana.pow...@rd.io rdio.com/people/dpkp/ On Thu, Mar 20, 2014 at 7

Re: Using Kafka Metrics

2014-03-20 Thread Andrew Otto
I’m using jmxtrans to do this for Ganglia, but it should work the same for Graphite: http://www.jmxtrans.org/ Here’s an example Kafka jmxtrans json file. https://github.com/wikimedia/puppet-kafka/blob/master/kafka-jmxtrans.json.md You can change the output writers to use Graphite instead of Gan

Using Kafka Metrics

2014-03-20 Thread Sanjay Mengani
Please I need help for sending metrics to Graphite. Can anyone help me in resolving this. Thank You. Regards, Sanjay Mengani Extn : 4060 Mobile : +91-9985267763

Re: Kafka metrics. Issue with unclean leader election rate

2014-01-23 Thread Jun Rao
What's the output of list topic on that topic? Thanks, Jun On Thu, Jan 23, 2014 at 10:27 AM, Arathi Maddula wrote: > Yes we use 0.8.0 release >

Kafka metrics. Issue with unclean leader election rate

2014-01-23 Thread Arathi Maddula
Yes we use 0.8.0 release

Regarding question Kafka metrics. Issue with unclean leader election rate

2014-01-23 Thread Arathi Maddula
This is wrt question Kafka metrics. Issue with unclean leader election rate (http://www.marshut.com/inkitk/kafka-metrics-issue-with-unclean-leader-election-rate.html) We use Kafka 0.8.0

Re: Kafka metrics. Issue with unclean leader election rate

2014-01-22 Thread Jun Rao
Are you using the 0.8.0 release? Thanks, Jun On Wed, Jan 22, 2014 at 10:11 AM, Arathi Maddula wrote: > Hi, > > I have a 3 node Kafka cluster. Iam monitoring the JMX metrics of these 3 > nodes. All topics and partitions are distributed across all 3 nodes. But > node1 is idle while node2 and no

Re: Using Kafka Metrics

2013-09-18 Thread Neha Narkhede
Each broker will only report metrics for the partitions that exist on that broker. In order to get a global view of metrics, you will need to collect metrics from all brokers. Thanks, Neha On Wed, Sep 18, 2013 at 3:07 PM, Vimpy Batra wrote: > In case there are multiple brokers, is there an ove

Re: Using Kafka Metrics

2013-09-18 Thread Vimpy Batra
In case there are multiple brokers, is there an overlap in the metric values they report? Let's say a topic is partitioned onto multiple broker nodes and we want topic level metrics. Will all the brokers be reporting the same value? Should we tap into one broker to get all the metrics or do we n

Re: Using Kafka Metrics

2013-09-18 Thread Neha Narkhede
If you start a Kafka broker, it should start reporting metrics automatically. But I'm not sure if I understood your question completely. Can you elaborate on what problem you saw with metrics collection? Thanks, Neha On Wed, Sep 18, 2013 at 2:20 PM, Vimpy Batra wrote: > Hi, > > I am using Kafk

Using Kafka Metrics

2013-09-18 Thread Vimpy Batra
Hi, I am using Kafka-0.8 and have a module to write metrics to Graphite. I have a multi node cluster and was wondering if I need to enable metrics reporting on all of them. Any advice will be helpful. Thanks,

Re: Kafka Metrics in 0.8

2013-07-30 Thread Jun Rao
Hi All, > > > > > > As kafka-0.8's main feature in data replication. > > > > > > We are running two kafka nodes(lets say: kafka-1 and kafka-2) in > cluster > > > mode. If we produce data into kafka using replication factor=2 then its > > &

Re: Kafka Metrics in 0.8

2013-07-29 Thread Hanish Bansal
gt; > >> > > >> Jun > > >> > > >> > > >> On Mon, Jul 1, 2013 at 9:06 PM, Hanish Bansal < > > >> hanish.bansal.agar...@gmail.com> wrote: > > >> > > >> > Okay i'll try for same. > > >

Re: Kafka Metrics in 0.8

2013-07-29 Thread Jun Rao
gt; replica is created on second machine. > > I am using jconsole to monitor kafka. if messages are going on kafka-1 then > i am able to see kafka metrics on jconsole of kafka-1. But by connecting to > jconsole for kafka-2 i am not seeing any metrics, i want to know why it is > hap

Re: Kafka Metrics in 0.8

2013-07-29 Thread Hanish Bansal
s are going on kafka-1 then i am able to see kafka metrics on jconsole of kafka-1. But by connecting to jconsole for kafka-2 i am not seeing any metrics, i want to know why it is happening ?? For more clarity i am asking same question in other way: If one kafka node is storing replicas of data, then

Re: Kafka Metrics in 0.8

2013-07-03 Thread Hanish Bansal
me. > > > > Also want to know that in kafka-0.7 there is single MBean - > > SocketServerStats which provides all kafka Metrics. But in Kafka-0-8 > there > > are individual MBeans (like AllTopicsBytesInPerSec, > AllTopicsBytesOutPerSec > > etc.) for getting each pa

Re: Kafka Metrics in 0.8

2013-07-02 Thread Jun Rao
In 0.8, there are more mbeans than 0.7. Thanks, Jun On Mon, Jul 1, 2013 at 9:06 PM, Hanish Bansal < hanish.bansal.agar...@gmail.com> wrote: > Okay i'll try for same. > > Also want to know that in kafka-0.7 there is single MBean - > SocketServerStats which provides al

Re: Kafka Metrics in 0.8

2013-07-01 Thread Hanish Bansal
Okay i'll try for same. Also want to know that in kafka-0.7 there is single MBean - SocketServerStats which provides all kafka Metrics. But in Kafka-0-8 there are individual MBeans (like AllTopicsBytesInPerSec, AllTopicsBytesOutPerSec etc.) for getting each parameter like ByteInRate, ByteOu

Re: .IOException: Unable to create /home/kafka/metrics/NumDelayedRequests.csv

2013-07-01 Thread Jun Rao
n: Unable to create > /home/kafka/metrics/NumDelayedRequests.csv > at > > com.yammer.metrics.reporting.CsvReporter.createStreamForMetric(CsvReporter.java:141) > at > > com.yammer.metrics.reporting.CsvReporter.getPrintStream(C

.IOException: Unable to create /home/kafka/metrics/NumDelayedRequests.csv

2013-07-01 Thread Vadim Keylis
I am getting this exception even those permission properly set and empty file is created. Other metric files created without problems. java.io.IOException: Unable to create /home/kafka/metrics/NumDelayedRequests.csv at com.yammer.metrics.reporting.CsvReporter.createStreamForMetric

Re: Kafka Metrics in 0.8

2013-07-01 Thread Jun Rao
oticed that. According to changes in kafka-0.8 i > am trying to get kafka metrics using JMX through jmxtrans api. > > Here is sample java code of getting jmx parameters using jmxtrans api: > >Server kafkaJMXServer = new Server("127.0.0.1", ""); >

Kafka Metrics in 0.8

2013-07-01 Thread Hanish Bansal
kafka-0.7. I have already noticed that. According to changes in kafka-0.8 i am trying to get kafka metrics using JMX through jmxtrans api. Here is sample java code of getting jmx parameters using jmxtrans api: Server kafkaJMXServer = new Server("127.0.0.1", "");