-
Notifications
You must be signed in to change notification settings - Fork 601
[AWS] Add EMR metrics data stream #6120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
6eac964
add emr_metrics data stream
mrg-elastic 3e49faa
bump package version
mrg-elastic 1942ed5
Merge remote-tracking branch 'upstream/main' into add_aws-emr_metrics
mrg-elastic b6a4e7d
fix aws package version
mrg-elastic 013e014
fix field types
mrg-elastic fad81b9
add unit and metric_types
mrg-elastic 562d1a3
add docs
mrg-elastic 694620e
Merge remote-tracking branch 'upstream/main' into add_aws-emr_metrics
mrg-elastic bd23a90
fix typo in docs
mrg-elastic ab8a0ea
Update packages/aws/data_stream/emr_metrics/manifest.yml
58401b9
add tags_filter and include_linked_accounts
mrg-elastic ab34e27
add beta release
mrg-elastic 62cdcb3
Merge remote-tracking branch 'upstream/main' into add_aws-emr_metrics
mrg-elastic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
110 changes: 110 additions & 0 deletions
110
packages/aws/data_stream/emr_metrics/agent/stream/stream.yml.hbs
This file contains hidden or 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,110 @@ | ||
| metricsets: ["cloudwatch"] | ||
| period: {{period}} | ||
| {{#if data_granularity}} | ||
| data_granularity: {{data_granularity}} | ||
| {{/if}} | ||
| {{#if access_key_id}} | ||
| access_key_id: {{access_key_id}} | ||
| {{/if}} | ||
| {{#if secret_access_key}} | ||
| secret_access_key: {{secret_access_key}} | ||
| {{/if}} | ||
| {{#if session_token}} | ||
| session_token: {{session_token}} | ||
| {{/if}} | ||
| {{#if credential_profile_name}} | ||
| credential_profile_name: {{credential_profile_name}} | ||
| {{/if}} | ||
| {{#if shared_credential_file}} | ||
| shared_credential_file: {{shared_credential_file}} | ||
| {{/if}} | ||
| {{#if role_arn}} | ||
| role_arn: {{role_arn}} | ||
| {{/if}} | ||
| {{#if default_region}} | ||
| default_region: {{default_region}} | ||
| {{/if}} | ||
| {{#if regions}} | ||
| regions: | ||
| {{#each regions as |region i|}} | ||
| - {{region}} | ||
| {{/each}} | ||
| {{/if}} | ||
| {{#if latency}} | ||
| latency: {{latency}} | ||
| {{/if}} | ||
| {{#if proxy_url }} | ||
| proxy_url: {{proxy_url}} | ||
| {{/if}} | ||
| metrics: | ||
| - namespace: AWS/ElasticMapReduce | ||
| resource_type: emr | ||
| statistic: ["Average"] | ||
| name: | ||
| - IsIdle | ||
| - ContainerPendingRatio | ||
| - LiveDataNodes | ||
| - MultiMasterInstanceGroupNodesRunningPercentage | ||
| - HDFSUtilization | ||
| - YARNMemoryAvailablePercentage | ||
| - TotalUnitsRunning | ||
| - TotalNodesRunning | ||
| - TotalVCPURunning | ||
| - CoreUnitsRunning | ||
| - CoreNodesRunning | ||
| - CoreVCPURunning | ||
| - TaskUnitsRunning | ||
| - TaskNodesRunning | ||
| - TaskVCPURunning | ||
| - AutoTerminationIsClusterIdle | ||
| - namespace: AWS/ElasticMapReduce | ||
| resource_type: emr | ||
| statistic: ["Sum"] | ||
| name: | ||
| - ContainerAllocated | ||
| - ContainerReserved | ||
| - ContainerPending | ||
| - AppsCompleted | ||
| - AppsFailed | ||
| - AppsKilled | ||
| - AppsPending | ||
| - AppsRunning | ||
| - AppsSubmitted | ||
| - CoreNodesPending | ||
| - MRTotalNodes | ||
| - MRActiveNodes | ||
| - MRLostNodes | ||
| - MRUnhealthyNodes | ||
| - MRDecommissionedNodes | ||
| - MRRebootedNodes | ||
| - MultiMasterInstanceGroupNodesRunning | ||
| - MultiMasterInstanceGroupNodesRequested | ||
| - S3BytesWritten | ||
| - S3BytesRead | ||
| - HDFSBytesRead | ||
| - HDFSBytesWritten | ||
| - TotalLoad | ||
| - MemoryTotalMB | ||
| - MemoryReservedMB | ||
| - MemoryAvailableMB | ||
| - MemoryAllocatedMB | ||
| - PendingDeletionBlocks | ||
| - UnderReplicatedBlocks | ||
| - DfsPendingReplicationBlocks | ||
| - CapacityRemainingGB | ||
| - TotalNotebookKernels | ||
| - namespace: AWS/ElasticMapReduce | ||
| resource_type: emr | ||
| statistic: ["Maximum"] | ||
| name: | ||
| - MissingBlocks | ||
| - CorruptBlocks | ||
| - TotalUnitsRequested | ||
| - TotalNodesRequested | ||
| - TotalVCPURequested | ||
| - CoreUnitsRequested | ||
| - CoreNodesRequested | ||
| - CoreVCPURequested | ||
| - TaskUnitsRequested | ||
| - TaskNodesRequested | ||
| - TaskVCPURequested |
This file contains hidden or 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,35 @@ | ||
| - name: cloud | ||
| title: Cloud | ||
| group: 2 | ||
| description: Fields related to the cloud or infrastructure the events are coming from. | ||
| footnote: 'Examples: If Metricbeat is running on an EC2 host and fetches data from its host, the cloud info contains the data about this machine. If Metricbeat runs on a remote machine outside the cloud and fetches data from a service running in the cloud, the field contains cloud data from the machine the service is running on.' | ||
| type: group | ||
| fields: | ||
| - name: image.id | ||
| type: keyword | ||
| description: Image ID for the cloud instance. | ||
| - name: host | ||
| title: Host | ||
| group: 2 | ||
| description: 'A host is defined as a general computing instance. | ||
|
|
||
| ECS host.* fields should be populated with details about the host on which the event happened, or from which the measurement was taken. Host types include hardware, virtual machines, Docker containers, and Kubernetes nodes.' | ||
| type: group | ||
| fields: | ||
| - name: containerized | ||
| type: boolean | ||
| description: > | ||
| If the host is a container. | ||
|
|
||
| - name: os.build | ||
| type: keyword | ||
| example: "18D109" | ||
| description: > | ||
| OS build information. | ||
|
|
||
| - name: os.codename | ||
| type: keyword | ||
| example: "stretch" | ||
| description: > | ||
| OS codename, if any. | ||
|
|
20 changes: 20 additions & 0 deletions
20
packages/aws/data_stream/emr_metrics/fields/base-fields.yml
This file contains hidden or 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,20 @@ | ||
| - name: data_stream.type | ||
| type: constant_keyword | ||
| description: Data stream type. | ||
| - name: data_stream.dataset | ||
| type: constant_keyword | ||
| description: Data stream dataset. | ||
| - name: data_stream.namespace | ||
| type: constant_keyword | ||
| description: Data stream namespace. | ||
| - name: '@timestamp' | ||
| type: date | ||
| description: Event timestamp. | ||
| - name: event.module | ||
| type: constant_keyword | ||
| description: Event module | ||
| value: aws | ||
| - name: event.dataset | ||
| type: constant_keyword | ||
| description: Event dataset | ||
| value: aws.emr_metrics |
This file contains hidden or 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,62 @@ | ||
| - external: ecs | ||
| name: cloud | ||
| - external: ecs | ||
| name: cloud.account.id | ||
| - external: ecs | ||
| name: cloud.account.name | ||
| - external: ecs | ||
| name: cloud.availability_zone | ||
| - external: ecs | ||
| name: cloud.instance.id | ||
| - external: ecs | ||
| name: cloud.instance.name | ||
| - external: ecs | ||
| name: cloud.project.id | ||
| - external: ecs | ||
| name: cloud.machine.type | ||
| - external: ecs | ||
| name: cloud.provider | ||
| - external: ecs | ||
| name: cloud.region | ||
| - external: ecs | ||
| name: ecs.version | ||
| - external: ecs | ||
| name: error | ||
| - external: ecs | ||
| name: error.message | ||
| - external: ecs | ||
| name: service.type | ||
| - external: ecs | ||
| name: host.architecture | ||
| - external: ecs | ||
| name: host.domain | ||
| - external: ecs | ||
| name: host.hostname | ||
| - external: ecs | ||
| name: host.id | ||
| - external: ecs | ||
| name: host.ip | ||
| - external: ecs | ||
| name: host.mac | ||
| - external: ecs | ||
| name: host.name | ||
| - external: ecs | ||
| name: host.os.family | ||
| - external: ecs | ||
| name: host.os.kernel | ||
| - external: ecs | ||
| name: host.os.name | ||
| - external: ecs | ||
| name: host.os.platform | ||
| - external: ecs | ||
| name: host.os.version | ||
| - external: ecs | ||
| name: host.type | ||
| - external: ecs | ||
| name: container.id | ||
| - external: ecs | ||
| name: container.image.name | ||
| - external: ecs | ||
| name: container.labels | ||
| - external: ecs | ||
| name: container.name |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recently we added a new cloudwatch metricset setting called
include_linked_accountsto collect data from linked account. I guess we could add this to this integration as well.See #6459 for more context about this topic.