-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
out_kafka: emit a metric when librdkafka signals an error
The async nature of the kafka output makes the fluentbit_output_dropped_records_total insufficient to determine whether there are problems sending messages to kafka. fluent-bit considers a message delivered when it has been added to the librdkafka buffers. If librdkafka subsequently fails to deliver the message, the only feedback is a log message such as: ``` [2024/11/12 07:56:45] [ warn] [output:kafka:azure] message delivery failed: Local: Message timed out ``` So let's add a metric that exposes how often librdkafka signals that it has problems talking to kafka. Signed-off-by: Dennis Kaarsemaker <[email protected]>
- Loading branch information
Showing
3 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
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
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
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