0

I am checking and validating the metrics of producer and consumers. But metric record_error_rate is always seems to be zero in all my experiments.

If someone has any ideas when will this be non-zero then please let me know, also the steps to reproduce it.

Giorgos Myrianthous
  • 36,235
  • 20
  • 134
  • 156
dvsakgec
  • 3,514
  • 4
  • 28
  • 35

1 Answers1

0

record-error-rate indicates the average per-second number of record sends that resulted in errors for a topic.


If you get 0 then it simply means that no record has failed from the producer side.


Now if for testing purposes you want to intentionally get a non-zero value then simply try to generate a faulty message from the producer side. For example, try to send a message with a wrong schema, withoug authentication (if SSL is enabled), etc.

Giorgos Myrianthous
  • 36,235
  • 20
  • 134
  • 156
  • So, is it because of client side errors, will this also include errors in case producer fails to publish messages because of either brokers are down, network partition, I mean server side or network errors – dvsakgec Apr 16 '20 at 03:05
  • Tried locally with while ValueSerializer was String but send Integer, mentioned metrics value still 0. Also same metric is available at topic level and even a consolidated value at producer instance level as well. Will try with authentication as well – dvsakgec Apr 16 '20 at 03:53
  • @dvsakgec Any luck? – Giorgos Myrianthous Apr 16 '20 at 13:38
  • Hi @dvsakgec, any update on it? :))) I have the same problem, when send fails with time out, it logs it in error total but it does not log it to error rate – BabyGluk Oct 15 '21 at 06:00
  • Sorry guys, pretty late. No luck tried but could not reproduce. – dvsakgec Oct 15 '21 at 15:38