You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Users can construct alerts like "can't produce messages" themselves from those
71
+
svc.endToEndMessagesProduced=makeCounter("messages_produced_total", "Number of messages that kminion's end-to-end test has tried to send to kafka")
72
+
svc.endToEndMessagesAcked=makeCounter("messages_acked_total", "Number of messages kafka acknowledged as produced")
73
+
svc.endToEndMessagesReceived=makeCounter("messages_received_total", "Number of *matching* messages kminion received. Every roundtrip message has a minionID (randomly generated on startup) and a timestamp. Kminion only considers a message a match if it it arrives within the configured roundtrip SLA (and it matches the minionID)")
74
+
svc.endToEndMessagesCommitted=makeCounter("messages_committed_total", "Number of *matching* messages kminion successfully commited as read/processed. See 'messages_received' for what 'matching' means. Kminion will commit late/mismatching messages to kafka as well, but those won't be counted in this metric.")
75
+
76
+
// Latency Histograms
77
+
// More detailed info about how long stuff took
78
+
// Since histograms also have an 'infinite' bucket, they can be used to detect small hickups "lost" messages
79
+
svc.endToEndAckLatency=makeHistogram("produce_latency_seconds", cfg.Producer.AckSla, "Time until we received an ack for a produced message")
80
+
svc.endToEndRoundtripLatency=makeHistogram("roundtrip_latency_seconds", cfg.Consumer.RoundtripSla, "Time it took between sending (producing) and receiving (consuming) a message")
81
+
svc.endToEndCommitLatency=makeHistogram("commit_latency_seconds", cfg.Consumer.CommitSla, "Time kafka took to respond to kminion's offset commit")
0 commit comments