Metrics
CPU, memory and ephemeral-storage metrics for deployments, tools and environments.
Deployment or tool metrics
Usage over a time range plus the current request and limit for a deployment or tool.
Pass deploymentId or toolId. CPU values are in millicores; memory and storage in bytes.
The effective step is the largest of 15 s, your step, and (to - from) / 11000.
query Parameters
namespaceEnvironment ID, e.g. env-k3x9q2m7.
resourceTypefromRange start, ISO-8601.
toRange end, ISO-8601.
deploymentIdDeployment ID. Required unless toolId is given.
toolIdTool ID. Required unless deploymentId is given.
stepResolution in seconds (minimum 15).
clusterCluster name. Defaults to the cluster hosting the environment; usually omit it.
Deployment or tool metrics › Responses
Metrics.
statusmessageLive deployment or tool metrics (SSE)
Server-Sent Events stream. Sends an update event immediately and then every interval
seconds, with a keep-alive comment every 20 s. See the Streaming guide.
Payload: {"ts": …, "identity": {…}, "values": {"usage": n, "request": n, "limit": n}}.
query Parameters
namespaceEnvironment ID, e.g. env-k3x9q2m7.
resourceTypedeploymentIdtoolIdintervalSeconds between updates (minimum 15).
clusterCluster name. Defaults to the cluster hosting the environment; usually omit it.
Live deployment or tool metrics (SSE) › Responses
text/event-stream
Environment metrics
CPU, memory and storage usage over a time range for a whole environment.
query Parameters
namespaceEnvironment ID, e.g. env-k3x9q2m7.
fromRange start, ISO-8601.
toRange end, ISO-8601.
stepResolution in seconds (minimum 15).
clusterCluster name. Defaults to the cluster hosting the environment; usually omit it.
Environment metrics › Responses
Metrics for each resource type.
statusmessageLive environment metrics (SSE)
query Parameters
namespaceEnvironment ID, e.g. env-k3x9q2m7.
resourceTypeintervalSeconds between updates (minimum 15).
clusterCluster name. Defaults to the cluster hosting the environment; usually omit it.
Live environment metrics (SSE) › Responses
text/event-stream
Container metrics
CPU, memory and storage over a time range for a single pod container.
query Parameters
namespaceEnvironment ID, e.g. env-k3x9q2m7.
podcontainerfromRange start, ISO-8601.
toRange end, ISO-8601.
stepResolution in seconds (minimum 15).
clusterCluster name. Defaults to the cluster hosting the environment; usually omit it.
Container metrics › Responses
Metrics for each resource type.
statusmessage
