{"id":6329,"date":"2020-04-10T17:00:00","date_gmt":"2020-04-10T17:00:00","guid":{"rendered":"http:\/\/www.sumologic.com\/blog\/how-to-monitor-amazon-ecs"},"modified":"2025-05-08T19:12:27","modified_gmt":"2025-05-09T03:12:27","slug":"how-to-monitor-amazon-ecs","status":"publish","type":"blog","link":"https:\/\/www.sumologic.com\/blog\/how-to-monitor-amazon-ecs","title":{"rendered":"How to Monitor Amazon ECS"},"content":{"rendered":"\n<section class=\"e-stn e-stn-0d652506f82b000a392973813b918ee25d5b4211 e-stn--glossary-inner-content e-stn--table-of-content\"><div class=\"container\">\n<div class=\"wp-block-b3rg-row e-row row\">\n<div class=\"wp-block-b3rg-column e-col e-col-1f7b3997080fc292474d26ff00c905d99d3520fa e-col--content-wrapper  col-sm-12 col-lg-12 col-xl-12\">\n<div class=\"e-div e-div-a1b32f66e1749758df41d5aea14f647cd10e362c e-div--card-btn-link\">\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-34f6b7cf25f61494ea9b1d2226481739\">As a system administrator, you will need to monitor your containers for a wide array of reasons. Between analyzing the health of your containers, avoiding resource constraints, and collecting, parsing, and visualizing data, one could easily get lost.<\/p>\n\n\n<div class=\"e-img \">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"693\" src=\"http:\/\/www.sumologic.com\/wp-content\/uploads\/amazon_ecs_events.png\" alt=\"\" class=\"wp-image-6327\" title=\"\"><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading has-eigengrau-color has-text-color has-link-color wp-elements-99e4918300c34c76a24017f1ada252b3\" id=\"ecs_monitoring_and_logging\">ECS Monitoring and Logging<\/h2>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-3805e8571f3b09b8011d1e0853792db8\"><strong><\/strong>When monitoring and logging data for ECS containers, system administrators and cloud engineers gain deeper insights which allow them to make better, data-driven decisions when it comes to orchestration, architecture, and performance efficiency.<\/p>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-fea812551ee1d1a5dd8cf278b6267ac4\">It\u2019s important to monitor your systems in order to detect patterns and abnormalities. Cutting out the noise by reducing false positives increases productivity of your team by making actual alerts actionable. Logging and monitoring container data allows your team to prevent data outages, forecast intense resource needs and have a strategic, scalable plan.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-eigengrau-color has-text-color has-link-color wp-elements-8480bb88357c8f1bcf144d6daa0445f3\" id=\"gathering_data\">Gathering Data<\/h2>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-ac1c040087c011499532d50bf57ccd33\"><strong><\/strong>There are a few ways you can collect data and logs from ECS and ingest them into Sumo Logic.<\/p>\n\n\n\n<ol>\n<li>Installing a collector\/agent on the ECS host<\/li>\n<li>Leverage the Sumo Logic Docker collector container.<\/li>\n<li>Using the Sumo Logic Docker logging driver<\/li>\n<\/ol>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-069c6bf242142df6d41e111e157d8e52\">For simplicity sake and in the context of this post, we\u2019ll focus on the most common option, by installing the collector\/agent on the ECS host.<\/p>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-ec36eeb3952f0070fe03047ef34acc2e\">Installing the Sumo Logic collector on your ECS host allows for several things. You can measure things like CPU, Memory, Network latency and Disk Use, as well as take advantage of your hosts local file source for things such as OS, ECS, and other system service logs directly from the source versus being relayed from another service or location.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-eigengrau-color has-text-color has-link-color wp-elements-c7644afdb640cce22bd4dccfc2f8cb15\" id=\"how_to_leverage_data\">How to Leverage Data<br><\/h2>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-3b25cc30c2326665a5e8aebde05d5f8c\"><strong><\/strong>Collecting data is one thing. Harnessing that data, transforming it into something useful, and leveraging it to make impactful business and technical decisions is some next-level monitoring strategy.<\/p>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-edbba9feebc3bbc98de1de82b9dc8294\">By leveraging your data you collect from your ECS containers, you and your team can make data-driven decisions such as how to optimize your resources, save the organization money, highlight key improvement areas, and address any technical or performance issues.<\/p>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-1aa534d4ffd9f2fcc54758b9ad498a4d\">If your team is running a web application and not collecting and leveraging data from your ECS containers, you might as well be driving at night with no headlights on. It is nearly impossible to make any kind of accurate technical decision without having a baseline level to measure your metrics with.<\/p>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-76883991c4b433bc71bff239c3693739\">How will you know to increase your ECS container load during peak hours if you have no idea when customers access your web application the most? How will you know to scale your environment so you can anticipate the 3:00AM EST traffic spike you get from Ireland since it\u2019s 8:00AM across the pond? <\/p>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-a34f15d81e6a0a4f1282cc5331b0b919\">By leveraging your data from your Sumo Logic data collector agent, you and your team can guide your organization to make better, more efficient decisions, with less error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-eigengrau-color has-text-color has-link-color wp-elements-aceb832ab3a9ffb46deb6298de1833d5\" id=\"amazon_ecs_metrics\">Amazon ECS Metrics<\/h2>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-afbe0792f2b1f83318a695c87b35b780\"><strong><\/strong>You can monitor your organization&#8217;s Amazon ECS container resources by utilizing other Amazon AWS resources such as Amazon CloudWatch, or gain deeper insights consolidating your data inside Sumo Logic.<\/p>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-08d0ae8efada391f72b586ce01524e29\">Amazon CloudWatch is a fairly simple tool that collects and processes raw system and server data from your environment, in this case your Amazon ECS containers, and parses it into human-readable real-time metrics. However, your features are limited and you\u2019ll have difficulty correlating the metrics. <\/p>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-9a2eee0f92852a563411d35ebff9c1b7\">As previously covered in the prior post, Amazon ECS includes several metrics that can be tracked, monitored, and logged. From CPUReservation to Memory Utilization, Amazon ECS offers a number of ways to track your system and container health.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-eigengrau-color has-text-color has-link-color wp-elements-304ede6aecfda34c44f9825dbe8fd61c\" id=\"how_to_monitor_ecs_with_sumo_logic\">How to Monitor ECS with Sumo Logic<\/h2>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-c254be6f53fa232cd4181c2f369fc4db\">As already mentioned, collecting data with Sumo Logic and Amazon ECS can be done in several manners. The important thing is that data is collected so we can get to monitoring.<\/p>\n\n\n<div class=\"e-img \">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1467\" height=\"1185\" src=\"http:\/\/www.sumologic.com\/wp-content\/uploads\/amazon_ecs_cpu_memory_reservation_cluster.png\" alt=\"\" class=\"wp-image-6328\" title=\"\"><\/figure>\n<\/div>\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-58dc66d8e094d2db06646079ad53c574\">Amazon ECS can be monitored in a variety of ways as well by offering a clean, easy to use, and human readable dashboard that can provide insight into data points not often covered by the automated and manual monitoring tools that already come with Amazon ECS.<\/p>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-24cee82626a8154fda81027ac6bb9d29\">Some of those panels include:<\/p>\n\n\n\n<ul>\n<li>Cluster Count<\/li>\n<li>Service Count<\/li>\n<li>Number of Services<\/li>\n<li>Average CPU Utilization by Service<\/li>\n<li>Average Memory Utilization by Service<\/li>\n<\/ul>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-526603fe8f48d0b4518f04d8f57bbe32\">Sumo Logic can also help cover key Events within your Amazon ECS environment. Events can be filtered and monitored by:<\/p>\n\n\n\n<ul>\n<li>Type<\/li>\n<li>Time frame<\/li>\n<li>Location<\/li>\n<li>Resources Created &#038; Deleted Over Time<\/li>\n<li>Events by IAM User.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading has-eigengrau-color has-text-color has-link-color wp-elements-b7c98970829c5f572b778b26a37b1682\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-53c4f8901082e918bda4fd28b33dfda6\">As you can see, Sumo Logic goes several levels deeper than the basic and surface level monitoring tools Amazon AWS and Amazon ECS offer. <\/p>\n\n\n\n<p class=\"has-delft-blue-color has-text-color has-link-color wp-elements-319b085056c906ad66bff47f811875c0\">In the next post, we\u2019ll be going over Amazon ECS Monitoring with Sumo Logic to give you the ins and outs of the power of Sumo Logic and how you can fully customize your monitoring tools for your teams needs.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div><\/section>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":163,"featured_media":0,"template":"","meta":{"_acf_changed":false,"show_custom_date":false,"custom_date":"","featured":false,"featured_image":0,"learn_more_label":"","image_alt_text":"","learn_more_type":"","show_popup":false,"learn_more_link_file":0,"event_date":false,"event_start_date":"","event_end_date":"","place_holder_image_url":"","post_reading_time":"3","notification_enabled":false,"notification_text":"","notification_logo":"","notification_expiration_time":0,"is_enable_transparent_header":false,"selected_taxonomy_terms":{"blog-category":[130,125],"blog-tag":[]},"selected_primary_terms":[],"learn_more_link":[],"featured_page_list":[],"notification_enabled_post_list":[],"_gspb_post_css":"","_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"71176,71070,71043","_relevanssi_noindex_reason":"","inline_featured_image":false,"footnotes":""},"blog-category":[130,125],"blog-tag":[],"class_list":["post-6329","blog","type-blog","status-publish","hentry","blog-category-aws","blog-category-devops-it-operations"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sumologic.com\/wp-json\/wp\/v2\/blog\/6329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sumologic.com\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.sumologic.com\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.sumologic.com\/wp-json\/wp\/v2\/users\/163"}],"version-history":[{"count":3,"href":"https:\/\/www.sumologic.com\/wp-json\/wp\/v2\/blog\/6329\/revisions"}],"predecessor-version":[{"id":23307,"href":"https:\/\/www.sumologic.com\/wp-json\/wp\/v2\/blog\/6329\/revisions\/23307"}],"wp:attachment":[{"href":"https:\/\/www.sumologic.com\/wp-json\/wp\/v2\/media?parent=6329"}],"wp:term":[{"taxonomy":"blog-category","embeddable":true,"href":"https:\/\/www.sumologic.com\/wp-json\/wp\/v2\/blog-category?post=6329"},{"taxonomy":"blog-tag","embeddable":true,"href":"https:\/\/www.sumologic.com\/wp-json\/wp\/v2\/blog-tag?post=6329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}