Platform.sh User Documentation

Monitor Grid metrics

Try for 30 days
Flexible, version-controlled infrastructure provisioning and development-to-production workflows
Activate your trial

Grid environments consist of:

Infrastructure metrics report CPU, RAM, and disk space for app and worker containers and CPU and disk space for service containers. These metrics are available for all of your Grid environments.

You can see summaries of the metrics for each container separately in the Console under Services for a given environment. The full details are available under Metrics.

App containers are shown first, with the app name and an image corresponding to the app type. Service containers follow next with the same pattern and worker containers are shown last.

You can collapse the graphs by clicking Hide metrics. The graphs switch to an overview of the average resource utilization for the selected container.

How service container metrics look when minimized

Start metrics collection Anchor to this heading

To start collecting metrics on Grid environments, you need to redeploy the environment. If a redeploy is required for the specific environment, you see a note in the Console:

Screenshot showing the text Your metrics are almost here and a prompt to redeploy

Example of how to read metrics Anchor to this heading

This example should give you an idea of how the metrics appear. Grid environment metrics show resource usage for each app, service, and worker container.

Note that resources are spread across all containers within the project. So the resources you see for a given container don’t equal the total resources for the project.

This reference project has a single app, two services (PostgreSQL and Redis), and two workers. The plan size for this project is Medium. The appropriate resources have been allocated automatically for each container based on the number and type of containers for this plan size. The graphs show the current average usage in relation to the allocated resources.

Once you’ve read the metrics, see recommendations for action.

App container Anchor to this heading

Metrics graphs for the app container show CPU, RAM, and disk allocation and usage. The persistent disk has been configured in the app configuration at 9.57 GB, while the temporary disk is 7.99 GB.

All of the metrics for the app container

By default, the graphs include all instances and an average over the instances. To select metrics for specific instances, click Filter.

Clicking Filter reveals a list of instances you can filter

Service containers Anchor to this heading

Metrics graphs for the cache service container show CPU, RAM and disk allocation and usage. The temporary disk is 7.99 GB.

All of the metrics for the Redis container

PostgreSQL Anchor to this heading

Metrics graphs for the PostgreSQL service container show CPU, RAM, disk allocation and usage. The persistent disk has been configured in the services configuration as 2.81GB, while the temporary disk is 7.99 GB.

All of the metrics for the PostgreSQL container

Worker containers Anchor to this heading

Metrics graphs for the worker container show CPU, RAM, and disk allocation and usage. The persistent disk has been configured in the app configuration at 9.51 GB, while the temporary disk is 7.99 GB.

All of the metrics for the worker container