From 3488ee47e05e93bec4ea8a879e66f2c955369e36 Mon Sep 17 00:00:00 2001 From: hari-dhanushkodi Date: Mon, 16 Jun 2025 13:21:42 -0400 Subject: [PATCH] chore: add docs for lgp deployment monitoring (#5104) --- docs/docs/cloud/deployment/cloud.md | 9 +++++++++ docs/docs/concepts/langgraph_control_plane.md | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/docs/docs/cloud/deployment/cloud.md b/docs/docs/cloud/deployment/cloud.md index 8dfe00a40..89e703599 100644 --- a/docs/docs/cloud/deployment/cloud.md +++ b/docs/docs/cloud/deployment/cloud.md @@ -62,6 +62,15 @@ Starting from the `LangGraph Platform` view... 1. In the panel, select the `Server` tab to view server logs for the revision. Server logs are only available after a revision has been deployed. 1. Within the `Server` tab, adjust the date/time range picker as needed. By default, the date/time range picker is set to the `Last 7 days`. +## View Deployment Metrics + +Starting from the LangSmith UI... + +1. In the left-hand navigation panel, select `LangGraph Platform`. The `LangGraph Platform` view contains a list of existing LangGraph Platform deployments. +1. Select an existing deployment to monitor. +1. Select the `Monitoring` tab to view the deployment metrics. See a list of [all available metrics](../../concepts/langgraph_control_plane.md#monitoring). +1. Within the `Monitoring` tab, use the date/time range picker as needed. By default, the date/time range picker is set to the `Last 15 minutes`. + ## Interrupt Revision Interrupting a revision will stop deployment of the revision. diff --git a/docs/docs/concepts/langgraph_control_plane.md b/docs/docs/concepts/langgraph_control_plane.md index 3d54ee7c5..aac377a93 100644 --- a/docs/docs/concepts/langgraph_control_plane.md +++ b/docs/docs/concepts/langgraph_control_plane.md @@ -19,6 +19,7 @@ From the control plane UI, you can: - Update a deployment. - Update environment variables for a deployment. - View build and server logs of a deployment. +- View deployment metrics like CPU and memory usage. - Delete a deployment. The Control Plane UI is embedded in [LangSmith](https://docs.smith.langchain.com/langgraph_cloud). @@ -88,6 +89,15 @@ Infrastructure for deployments and revisions are provisioned and deployed asynch The control plane and [LangGraph Data Plane](./langgraph_data_plane.md) "listener" application coordinate to achieve asynchronous deployments. +### Monitoring + +After a deployment is ready, the control plane monitors the deployment and records various metrics, such as: + +- CPU and memory usage of the deployment. +- Number of container restarts. + +These metrics are displayed as charts in the Control Plane UI. + ### LangSmith Integration A [LangSmith](https://docs.smith.langchain.com/) tracing project is automatically created for each deployment. The tracing project has the same name as the deployment. When creating a deployment, the `LANGCHAIN_TRACING` and `LANGSMITH_API_KEY`/`LANGCHAIN_API_KEY` environment variables do not need to be specified; they are set automatically by the control plane.