-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Metricbeat] Adding cloudwatch metricset into AWS module (#11798)
* Initial draft for adding cloudwatch metricset * Combine metrics into same events by identifiers(instanceID, queueName,...) * Split metricDataQueries into 100 length in GetMetricDataResults * Add support to read metricname, dimensions from config for cloudwatch * Move CloudwatchMetricsConfigs into cloudwatch metricset from aws module * Change Period from string to time.Duration type
- Loading branch information
1 parent
0a2ae60
commit 55e9628
Showing
22 changed files
with
947 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-aws-cloudwatch]] | ||
=== aws cloudwatch metricset | ||
|
||
beta[] | ||
|
||
include::../../../../x-pack/metricbeat/module/aws/cloudwatch/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-aws,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../../x-pack/metricbeat/module/aws/cloudwatch/_meta/data.json[] | ||
---- |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,33 @@ | ||
- module: aws | ||
period: 300s | ||
metricsets: | ||
- "ec2" | ||
- "sqs" | ||
- ec2 | ||
- sqs | ||
access_key_id: '${AWS_ACCESS_KEY_ID:""}' | ||
secret_access_key: '${AWS_SECRET_ACCESS_KEY:""}' | ||
session_token: '${AWS_SESSION_TOKEN:""}' | ||
default_region: '${AWS_REGION:us-west-1}' | ||
- module: aws | ||
period: 86400s | ||
metricsets: | ||
- "s3_request" | ||
- "s3_daily_storage" | ||
- s3_request | ||
- s3_daily_storage | ||
access_key_id: '${AWS_ACCESS_KEY_ID:""}' | ||
secret_access_key: '${AWS_SECRET_ACCESS_KEY:""}' | ||
session_token: '${AWS_SESSION_TOKEN:""}' | ||
default_region: '${AWS_REGION:us-west-1}' | ||
- module: aws | ||
period: 300s | ||
metricsets: | ||
- cloudwatch | ||
access_key_id: '${AWS_ACCESS_KEY_ID:""}' | ||
secret_access_key: '${AWS_SECRET_ACCESS_KEY:""}' | ||
session_token: '${AWS_SESSION_TOKEN:""}' | ||
default_region: '${AWS_REGION:us-west-1}' | ||
cloudwatch_metrics: | ||
- namespace: AWS/EC2 | ||
metricname: CPUUtilization | ||
dimensions: | ||
- name: InstanceId | ||
value: i-0686946e22cf9494a | ||
- namespace: AWS/EBS |
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.