Welcome!

@CloudExpo Authors: Liz McMillan, Elizabeth White, Todd Matters, Harry Trott, Pat Romanski

Related Topics: @CloudExpo, Containers Expo Blog, @DevOpsSummit

@CloudExpo: Blog Feed Post

Docker Cloud Monitoring and Logging By @Sematext | @CloudExpo #Cloud #Containers

Docker Cloud is a container management service that supports multiple cloud providers

Docker Cloud Monitoring and Logging
By Stefan Thies

Docker Cloud is a hosted service for Docker Container Management, originally based on Tutum Cloud, which was acquired by Docker in October 2015. Sematext supported the deployment of Sematext Docker Agent on Tutum Cloud from the get-go, so naturally we were quick to add support for Docker Cloud as well.

What is Docker Cloud?
Docker Cloud is a container management service that supports multiple cloud providers such as Amazon, DigitalOcean, IBM Softlayer, MS Azure and Packet.net. This makes it much easier to switch Docker deployments to different cloud providers or use a mix of providers including on-premises nodes for hybrid cloud applications. The user interface in Docker Cloud makes it easy to manage nodes on all supported cloud platforms and is able to deploy application stacks in containers, defined in a "Stack YAML" file. This Stack files are very similar to Docker Compose files, but with additional options, e.g. to define deployment strategies for the containers. The graphical user interface helps to view and modify container configurations.

Docker Cloud Metrics & Logs
Once containers are deployed you can get a very basic real-time log stream view per container (see below). This is helpful for a quick glance at the most recent logs of a specific container.

Real-time log view in Docker Cloud

Real-time log view in Docker Cloud

There are currently no Docker metrics exposed anywhere in Docker Cloud, though that will surely be added with time. Docker Cloud does an excellent job for the "Build, Ship and Run" containers paradigm. But if you've ever built a production system you know there is more to it. There is this little wrinkle called Operations. So let's talk about the more realistic scenario - "Build, Ship, Run and Monitor"

Thanks to the Docker API, it is possible to add this functionality to Docker Cloud. Sematext Docker Agent is a small container that collects all Docker metrics, all app and Docker logs and all Docker events from Docker Cloud and together with SPM for Performance Monitoring and Logsene for Log Management and Analytics it provides advanced Performance Monitoring and Log Management functionality for stacks deployed in Docker Cloud:

  1. Detailed Metrics with a long retention time. Having detailed metrics helps optimize resource usage of applications. Detailed metrics let you set application-specific alerts for any critical resources your applications depends on. Metrics are aggregated for all hosts, images and containers and filterable by hosts, images, and containers. This lets you drill down from a cluster view down to a single container while troubleshooting or simply understand operations details. Long retention times for metrics make it possible to compare resources before and after different deployments and releases or troubleshoot problems that appear only when a service has been running over several days or weeks!
  2. Full-text search, filtering, and analytics across all containers. Logs are collected, parsed and shipped by Sematext Docker Agent. The integrated charting functions in Logsene and integrations for Kibana and Grafana make it easy to analyze logs collected in Docker Cloud. In short, you can use Logsene as a "super grep" for your Docker and application logs, but also as amuch more affordable Splunk or any other BI tool, or a managed Elastic stack (aka ELK).
  3. Long retention time for logs, metrics and events. Comparing metrics and logs during deployments or watching the performance under different workloads requires one to store logs and metrics for a reasonable time. We have seen cases where memory leaks started to get serious after a few weeks of stable operations, although initially they were not detected. In such a case all context information like logs, events and metrics could be very valuable in identifying the root cause of such problems.
  4. Tracking of all Docker Events. Tracking of all Docker Events gives you a clear view of your containers' life cycle. For example, by collecting Events you gain insight into what happens with your containers during (re)deployments or the re-scheduling of containers to different nodes. Some containers might be configured for automatic restarts and the events could indicate if container processes crash frequently. In case of out-of-memory events, it might be wise to modify the memory limits or check with the developers, why this event happened.
  5. Anomaly detection and alerts for all logs and metrics. Who wants to watch metrics and logs all day long? Not me! Let the monitoring system watch outliers for metrics or query your logs! Anomaly detection can help reduce the noise and alert fatigue often caused by classic threshold-based alerts. Even log-alerting is possible with Logsene e.g. to detect anomalies in the log frequency of a specific query. For example, a search for "error" in the system might normally return a dozen non-critical errors, which could be ignored. A growth in the log frequency of error messages indicates that something might be going wrong. Another type of alerts is the Heartbeat alert for all cluster nodes. Disk Space alerts are very useful for Docker nodes, because Docker images might consume a lot of disk space. Docker Cloud runs some cleanup agents to remove unused containers and images; nevertheless the default disk-space alert created by SPM gives you an early warning before the capacity limit is reached.

Here's a short video about Log Management and Monitoring for Docker. It gives a general overview of Monitoring and Log Management in Docker context, plus shows you how to use SPM and Logsene as a single pane of glass for your Docker metrics and logs.

Having all this operational insights, and having it in a single pane of glass makes everyone's work (and that means life, too) simpler. We all want that, no? With that in mind, we've made sure the Sematext Docker Agent setup is super quick and easy:

  1. Get a free account at apps.sematext.com, if you don't have one already
  2. Create an SPM App of type "Docker" to obtain the SPM Application Token and/or
    Create a Logsene App to obtain the Logsene Application Token
  3. Click the "Deploy to Cloud" button in Sematext UI and copy the generated token into the Stackfile text field in Docker Cloud

    Create SPM app and deploy to Docker Cloud

    Create SPM app and deploy to Docker Cloud

  4. As soon you click "Create and deploy" in Docker Cloud the Sematext Docker Agent will be pulled from Docker Hub and it will start on all nodes managed by Docker Cloud. A few seconds later you should see Events, Logs & Metrics in SPM & Logsene.

Docker Cloud Metrics Overview in SPM

Docker Events and Metrics in SPM

Structured Docker Logs in Logsene / Kibana discover view

Everything mentioned above could take you just 10-15 minutes, meaning that in 10-15 you could be looking at charts with all your Docker operations data in one place, accessible by your whole team!

If you have feedback for monitoring and logging on Docker Cloud get in touch with us via @sematext or email us at [email protected] - we love to talk about monitoring and logging and appreciate user feedback that helps us improve our services and make them better serve your needs. If you want to try SPM or Logsene, start here.

Read the original blog entry...

More Stories By Sematext Blog

Sematext is a globally distributed organization that builds innovative Cloud and On Premises solutions for performance monitoring, alerting and anomaly detection (SPM), log management and analytics (Logsene), and search analytics (SSA). We also provide Search and Big Data consulting services and offer 24/7 production support for Solr and Elasticsearch.

@CloudExpo Stories
"Loom is applying artificial intelligence and machine learning into the entire log analysis process, from start to finish and at the end you will get a human touch,” explained Sabo Taylor Diab, Vice President, Marketing at Loom Systems, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
@DevOpsSummit at Cloud Expo taking place Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center, Santa Clara, CA, is co-located with the 21st International Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is ...
SYS-CON Events announced today that Datanami has been named “Media Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Datanami is a communication channel dedicated to providing insight, analysis and up-to-the-minute information about emerging trends and solutions in Big Data. The publication sheds light on all cutting-edge technologies including networking, storage and applications, and the...
SYS-CON Events announced today that EnterpriseTech has been named “Media Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. EnterpriseTech is a professional resource for news and intelligence covering the migration of high-end technologies into the enterprise and business-IT industry, with a special focus on high-tech solutions in new product development, workload management, increased effi...
You know you need the cloud, but you’re hesitant to simply dump everything at Amazon since you know that not all workloads are suitable for cloud. You know that you want the kind of ease of use and scalability that you get with public cloud, but your applications are architected in a way that makes the public cloud a non-starter. You’re looking at private cloud solutions based on hyperconverged infrastructure, but you’re concerned with the limits inherent in those technologies.
For organizations that have amassed large sums of software complexity, taking a microservices approach is the first step toward DevOps and continuous improvement / development. Integrating system-level analysis with microservices makes it easier to change and add functionality to applications at any time without the increase of risk. Before you start big transformation projects or a cloud migration, make sure these changes won’t take down your entire organization.
Cloud promises the agility required by today’s digital businesses. As organizations adopt cloud based infrastructures and services, their IT resources become increasingly dynamic and hybrid in nature. Managing these require modern IT operations and tools. In his session at 20th Cloud Expo, Raj Sundaram, Senior Principal Product Manager at CA Technologies, will discuss how to modernize your IT operations in order to proactively manage your hybrid cloud and IT environments. He will be sharing bes...
A look across the tech landscape at the disruptive technologies that are increasing in prominence and speculate as to which will be most impactful for communications – namely, AI and Cloud Computing. In his session at 20th Cloud Expo, Curtis Peterson, VP of Operations at RingCentral, highlighted the current challenges of these transformative technologies and shared strategies for preparing your organization for these changes. This “view from the top” outlined the latest trends and developments i...
Automation is enabling enterprises to design, deploy, and manage more complex, hybrid cloud environments. Yet the people who manage these environments must be trained in and understanding these environments better than ever before. A new era of analytics and cognitive computing is adding intelligence, but also more complexity, to these cloud environments. How smart is your cloud? How smart should it be? In this power panel at 20th Cloud Expo, moderated by Conference Chair Roger Strukhoff, paneli...
Hardware virtualization and cloud computing allowed us to increase resource utilization and increase our flexibility to respond to business demand. Docker Containers are the next quantum leap - Are they?! Databases always represented an additional set of challenges unique to running workloads requiring a maximum of I/O, network, CPU resources combined with data locality.
SYS-CON Events announced today that MobiDev, a client-oriented software development company, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. MobiDev is a software company that develops and delivers turn-key mobile apps, websites, web services, and complex software systems for startups and enterprises. Since 2009 it has grown from a small group of passionate engineers and business...
SYS-CON Events announced today that GrapeUp, the leading provider of rapid product development at the speed of business, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Grape Up is a software company, specialized in cloud native application development and professional services related to Cloud Foundry PaaS. With five expert teams that operate in various sectors of the market acr...
SYS-CON Events announced today that Ayehu will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on October 31 - November 2, 2017 at the Santa Clara Convention Center in Santa Clara California. Ayehu provides IT Process Automation & Orchestration solutions for IT and Security professionals to identify and resolve critical incidents and enable rapid containment, eradication, and recovery from cyber security breaches. Ayehu provides customers greater control over IT infras...
Artificial intelligence, machine learning, neural networks. We’re in the midst of a wave of excitement around AI such as hasn’t been seen for a few decades. But those previous periods of inflated expectations led to troughs of disappointment. Will this time be different? Most likely. Applications of AI such as predictive analytics are already decreasing costs and improving reliability of industrial machinery. Furthermore, the funding and research going into AI now comes from a wide range of com...
SYS-CON Events announced today that SourceForge has been named “Media Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. SourceForge is the largest, most trusted destination for Open Source Software development, collaboration, discovery and download on the web serving over 32 million viewers, 150 million downloads and over 460,000 active development projects each and every month.
In this presentation, Striim CTO and founder Steve Wilkes will discuss practical strategies for counteracting fraud and cyberattacks by leveraging real-time streaming analytics. In his session at @ThingsExpo, Steve Wilkes, Founder and Chief Technology Officer at Striim, will provide a detailed look into leveraging streaming data management to correlate events in real time, and identify potential breaches across IoT and non-IoT systems throughout the enterprise. Strategies for processing massive ...
"Our strategy is to focus on the hyperscale providers - AWS, Azure, and Google. Over the last year we saw that a lot of developers need to learn how to do their job in the cloud and we see this DevOps movement that we are catering to with our content," stated Alessandro Fasan, Head of Global Sales at Cloud Academy, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"We focus on composable infrastructure. Composable infrastructure has been named by companies like Gartner as the evolution of the IT infrastructure where everything is now driven by software," explained Bruno Andrade, CEO and Founder of HTBase, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
SYS-CON Events announced today that Conference Guru has been named “Media Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. A valuable conference experience generates new contacts, sales leads, potential strategic partners and potential investors; helps gather competitive intelligence and even provides inspiration for new products and services. Conference Guru works with conference organi...
SYS-CON Events announced today that Cloud Academy named "Bronze Sponsor" of 21st International Cloud Expo which will take place October 31 - November 2, 2017 at the Santa Clara Convention Center in Santa Clara, CA. Cloud Academy is the industry’s most innovative, vendor-neutral cloud technology training platform. Cloud Academy provides continuous learning solutions for individuals and enterprise teams for Amazon Web Services, Microsoft Azure, Google Cloud Platform, and the most popular cloud com...