forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Azure] Add input metrics to the azure-eventhub input (elastic#35739)
* Draft input metrics about events and records In this first iteration, the metrics keep track of the following data types: - events - records Events are the event delivered by the event hub; each event usually contains a list of records. Records are the actual logs from Azure; the input creates one document in Elasticsearch for each record. This draft keeps track of the following conditions. Events: - received: the input received from an event from the Event Hub - sanitized: the event contains invalid JSON, and the input tried fixing it - deserialization failed: the event contains invalid JSON; sanitization was ineffective - processed: the input processed all the records in the event Records: - received: the input unpacked a record from an event - serialization failed: failed to serialize the record for dispatching - processed: the input dispatched the record to the outlet * Add test cases for input metrics * Fix linter objections * Fix typos and stale comments * Set input ID with the config hash On v1 inputs, using the hash function of the config is a common practice. * Simplify and adopt conventions from other inputs * Add input metrics docs * Remove redundant log messages and leftovers * Move input ID and metrics closer This way it's more evident the two go along together. I am also adding comments for underline the ID will go away as we migrate the input to the input V2 API. * Add a guard to unregister() * Log major lifecycle events Adds a few more log message during major lifecycle events like failures in event publishing and input stopping. * Update CHANGELOG --------- Co-authored-by: Davide Girardi <1390902+girodav@users.noreply.github.com>
- Loading branch information
1 parent
feca7a0
commit 214fae2
Showing
8 changed files
with
417 additions
and
34 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
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
Oops, something went wrong.