Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
to: @airbnb/streamalert-maintainers
related to:
resolves:
Background
Add three custom metrics for
Artifact Extractor
ArtifactExtractor-ExtractedArtifacts
: Log the number of artifacts extracted from the recordsArtifactExtractor-FirehoseFailedRecords
: Log the number of records (artifacts) failed sent to FirehoseArtifactExtractor-FirehoseRecordsSent
: Log the number of records (artifacts) sent to FirehoseThese three custom metrics are useful for tracking the metrics of artifacts by adding them to a CloudWatch dashboard, as well as helpful to set alarms if necessary.
![artifact_extractor_custom_metrics](https://user-images.githubusercontent.com/21151436/81369860-73354d80-90a8-11ea-87b7-71b32ed54734.png)
Changes
function_name
to custom metricsArtifact Extractor
Testing
Steps for how this change was tested and verified