Forge Container services is now in Preview, and therefore fully supported. However, it remains under active development and may be subject to shorter deprecation windows. Preview features are suitable for early adopters in production environments.
We release preview features so partners and developers can study, test, and integrate them prior to General Availability (GA). For more details, see Forge Preview.
Use the developer console to monitor your Forge Container services. View service availability, compare resource usage across instances over time, and open logs for a service or an individual instance.
Container metrics are available only for apps that use Forge Container services.
To view your container services:
The Service overview page lists your services by placement. Use Environment and Placements to narrow the list.
| Column | Description |
|---|---|
| Service instance | The name of the container service. |
| Status | The availability status reported for the service in the selected environment and placement. |
| Placement | The placement where the service is provisioned. |
| Instances | The number of currently running instances out of the maximum configured instances. |
| Provisioned at (UTC) | The date and time the service was provisioned in this placement, in Coordinated Universal Time (UTC). |
| Actions | Select Metrics to view historical monitoring, or Logs to view service logs. |
In the service overview, select Metrics for the service and placement you want to investigate. You can also select Monitor under Container services in the left menu.
On the Container service monitoring page, select:
Choose Last 1 hour, Last 12 hours, Last 24 hours, or Last week. To set start and end dates and times, choose Custom. The page displays the selected period in UTC.
To load the latest data, select the refresh icon next to Last updated.
The summary shows the service status, environment, placement, CPU and memory resources, scaling limits and profile, and image tag.
The Instances table lists instances active during the selected time range, including terminated instances. Changing the time range can change which instances appear.
Each row shows the instance identifier, status, uptime, and a Logs action. Compare the instance identifiers with the chart legends to follow resource usage for a particular instance.
Instance statuses combine lifecycle and health-check information:
| Status | Meaning |
|---|---|
| Provisioning | The instance is being provisioned. |
| Available | The instance is running and healthy. |
| Unavailable | The instance is unhealthy, or its state cannot be confirmed as running and healthy. |
| Removing | The instance is being removed. |
| Terminated | The instance has stopped. |
| Chart | Description |
|---|---|
| CPU utilisation | CPU used by each instance as a percentage of its CPU limit. |
| Memory utilisation | Memory used by each instance as a percentage of its memory limit. |
| Instance count | The number of running container instances. |
| Restart count | The number of times the container has restarted. |
Select Logs in the service summary to view logs for the selected environment, service, and placement. Select Logs in an instance row to also filter by that instance.
Check the time range after opening logs. The Logs action doesn’t carry the monitoring time range across. For example, if you’re investigating a terminated instance from Last week, select a log time range that includes when it was active.
For filter and attribute details, see View app logs.
The following Service Health metrics are available for Forge Container services:
| Metric | Type | Description |
|---|---|---|
container_cpu_usage_percentage | Gauge | Container CPU usage as a percentage of the container's CPU limit. |
container_memory_usage_percentage | Gauge | Container memory working-set usage as a percentage of the container's memory limit. Working set is the memory used for out-of-memory (OOM) decisions. |
service_instance_count | Gauge | The number of running instances for a container service in a given region. |
container_uptime_seconds | Gauge | The number of seconds a container has been running since it last started. |
container_status_restarts_total | Cumulative Counter | The total number of times a container has restarted. |
You can export Service Health metrics using the
App metrics API. To export container metrics,
include the following values in the query.filters.metrics array of your API request:
CONTAINER_CPU_USAGE_PERCENTAGECONTAINER_MEMORY_USAGE_PERCENTAGESERVICE_INSTANCE_COUNTCONTAINER_UPTIME_SECONDSCONTAINER_STATUS_RESTARTS_TOTALFor details on setting up metrics export, see Export app metrics.
The following tags and dimensions are available with container metrics when using the App metrics API:
| Tag | Description | Applicable metrics |
|---|---|---|
appId | The unique identifier for the Forge app. | All container metrics |
environmentId | The environment UUID. | All container metrics |
serviceKey | The service key as defined in the manifest. | All container metrics |
region | The region where the service instance is running. | All container metrics |
cluster_uid | The cluster where the service instance is running. | All container metrics |
container | The container name. | container_cpu_usage_percentage, container_memory_usage_percentage, container_uptime_seconds, container_status_restarts_total |
pod | The pod identifier for the container instance. | container_cpu_usage_percentage, container_memory_usage_percentage, container_uptime_seconds, container_status_restarts_total |
Rate this page: