Skip to content
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

Add docs section for ECS EC2 monitoring #22784

Merged
merged 6 commits into from
Dec 1, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions x-pack/metricbeat/module/awsfargate/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,17 @@ Currently, we have `task_stats` metricset in `awsfargate` module.
This metricset collects runtime CPU metrics, disk I/O metrics, memory metrics,
network metrics and container metadata from both endpoint
`${ECS_CONTAINER_METADATA_URI_V4}/task/stats` and `${ECS_CONTAINER_METADATA_URI_V4}/task`.


[float]
== How to monitor containers running on ECS EC2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this!! Maybe we should add this section inside https://github.com/elastic/beats/pull/22784/files#diff-e1dda61aad4c73e0d21e21daf4f4c8f256e43a7cfda4ecedd2ffd02f239da959R21 so we only have one place mentioning ECS EC2 in awsfargate documentation.

As it was already mentioned running containers on ECS EC2 launches containers that run on EC2 instances.
One can monitor these containers by deploying Metricbeat on the corresponding EC2 instances with the
Metricbeat Docker module enabled.

In order to achieve this one will need:

. to ensure access to these EC2 instances using ssh keys
coupled with EC2 instances (attach ssh keys on cluster creation using `Key pair` option)
. to enable shh access for the instances with the
proper https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html[inbound rules].