As part of troubleshooting your self-hosted instance of LangSmith, the LangChain team may ask you to generate Clickhouse statistics that will help us understand memory and CPU consumption and connection concurrency. This command will generate a CSV that can be shared with the LangChain team.Documentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Ensure you have the following tools/items ready.- kubectl
-
Clickhouse database credentials
- Host
- Port
- Username
- If using the bundled version, this is
default
- If using the bundled version, this is
- Password
- If using the bundled version, this is
password
- If using the bundled version, this is
- Database name
- If using the bundled version, this is
default
- If using the bundled version, this is
-
Connectivity to the Clickhouse database from the machine you will be running the
get_clickhouse_statsscript on.- If you are using the bundled version, you may need to port forward the clickhouse service to your local machine.
- Run
kubectl port-forward svc/langsmith-clickhouse 8123:8123to port forward the clickhouse service to your local machine.
-
The script to generate ClickHouse stats
- Download the ClickHouse stats script
Running the clickhouse stats generation script
Run the following command to run the stats generation script:Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

