-
| 
         Hello, I have several independent  let timer: prometheus::HistogramTimer;
let producer: rdkafka::producer::FutureProducer;
/* … */
timer.start_timer()
let _ = producer
    .send(rec, Duration::from_secs(0))
    .await;
timer.observe_duration();I observe several effects: 
 My speculation is as follows: observed "lag" is different from the real because  I am not sure if my understanding is correct. Initially I interpreted this part of   | 
  
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
| 
         It appears, the issue was with how I plotted the measurements. When plotted correctly, both measured kafka write duration, and time before client read look very similar. For posterity, problem was that I had written  I will now close the question as answered, if anyone has some more insight into how   | 
  
Beta Was this translation helpful? Give feedback.
It appears, the issue was with how I plotted the measurements. When plotted correctly, both measured kafka write duration, and time before client read look very similar. For posterity, problem was that I had written
sum by(origin) (histogram_quantile(0.5, rate(…)))instead ofhistogram_quantile(0.5, sum by(origin, le) (rate(…)))I will now close the question as answered, if anyone has some more insight into how
FutureProducercan be (mis)measured, please add to the thread.