Maintain

Resource monitoring and interfacing Docker containers and logs.

Overview

Once you've built cloud resources in your MedStack Control environment and have deployed your Docker configuration, the load balancer, and services, you're ready to begin maintaining a functional environment.

Logs

Service log aggregates and container logs for services running in MedStack Control clusters can be accessed from a service's details page.

  • Service logs show the aggregate of STDERR and STDOUT logs from a service's containers in a web shell with read-only access.
  • Container logs show the STDERR and STDOUT logs for a specific service container in a web shell with read-only access. Container logs can be viewed for all containers that are available in Docker. Once a container is destroyed, its logs are no longer accessible.

Whether you are troubleshooting a service or checking in on its logging activity, it's easy to access the logs for a service or for specific containers in Medstack Control.

Service logs

Service logs contain the aggregate of all active container logs. They can be accessed by clicking the Logs button in the service containers section of the service details page.

Container logs

Container logs pertain to both active and stopped containers in the Docker environment. Once a container is destroyed, its logs are no longer accessible via Docker. Approximately every 24 hours or when space is needed on a disk, stopped contained are destroyed.

Active containers

To view active container logs, click the Logs button for a container in the service containers section of the service details page.

Stopped containers

Stopped container logs are preserved in the Swarm for at least 24 hours or until additional storage space is required by the node on which the containers are stored.

To view stopped container logs, click the View button for a container in the tasks / history section of the service details page.

Shell into containers

When a container is running, you can open a web terminal in MedStack Control to SSH into the service container, and communicate with resources connected to the service and other services in the Docker network.

To open a web terminal to shell into a container, click the Shell button for a container in the service containers section of the service details page.

Utilization metrics

Nodes

You may view the CPU, Memory, and Storage utilization of a node by clicking the View metrics button for a node in a cluster. The following interactions are supported with graphs:

  • Adjust the time range slider on the bottom of the graph
  • View the raw data by clicking the 📄 button
  • Restore the graph to its default view by clicking the 🔄 button
  • Download an image of the graph's current view by clicking the ⬇️ button

Databases

Utilization metrics for database servers are currently not reported in MedStack Control.

Containers

Utilization metrics for containers are currently not reported in MedStack Control.


What's next

Learn about best practices for going to production.

Did this page help you?