Documentation Index
Fetch the complete documentation index at: https://private-7c7dfe99-page-updates.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Monitoring JVM Metrics with ClickStack
TL;DRMonitor JVM applications in ClickStack using the OpenTelemetry Java agent. Includes a demo dataset and pre-built dashboard.
Integration with existing JVM application
This section covers configuring your existing JVM application to send metrics to ClickStack using the OpenTelemetry Java agent. If you would like to test the integration before configuring your production setup, you can test with our demo dataset in the demo dataset section.- ClickStack instance running
- Existing Java application (Java 8+)
- Access to modify JVM startup arguments
Get ClickStack API key
The OpenTelemetry Java agent sends data to ClickStack’s OTLP endpoint, which requires authentication.- Open HyperDX at your ClickStack URL (e.g., http://localhost:8080)
- Create an account or log in if needed
- Navigate to Team Settings → API Keys
- Copy your Ingestion API Key
Download OpenTelemetry Java agent
Download the OpenTelemetry Java agent JAR file:/opt/opentelemetry/ or alongside your application JAR).Configure JVM startup arguments
Add the Java agent to your JVM startup command. The agent automatically collects JVM metrics and sends them to ClickStack.opentelemetry-javaagent.jar→ Full path to the agent JAR (e.g.,/opt/opentelemetry/opentelemetry-javaagent.jar)my-java-app→ A meaningful name for your service (e.g.,payment-service,user-api)YOUR_API_KEY→ Your ClickStack API key from the command abovemy-application.jar→ Your application’s JAR file namehttp://localhost:4318→ Your ClickStack endpoint (uselocalhost:4318if ClickStack runs on the same machine, otherwise usehttp://your-clickstack-host:4318)
opentelemetry-javaagent.jar→ Full path to the agent JARmy-java-app→ Your service nameYOUR_API_KEY→ Your ClickStack API keyhttp://localhost:4318→ Your ClickStack endpointmy-application.jar→ Your application’s JAR file name
Verify metrics in HyperDX
Once your application is running with the agent, verify metrics are flowing to ClickStack:- Open HyperDX at http://localhost:8080 (or your ClickStack URL)
- Navigate to Chart Explorer
- Search for metrics starting with
jvm.(e.g.,jvm.memory.used,jvm.gc.duration,jvm.thread.count)
Demo dataset
For users who want to test the JVM metrics integration before instrumenting their applications, we provide a sample dataset with pre-generated metrics showing realistic JVM behavior from a medium-sized microservice with steady moderate traffic.Download the sample dataset
- Heap memory growth with periodic garbage collection events
- Thread count variations
- Realistic GC pause times
- Class loading activity
- CPU utilization patterns
Start ClickStack
If you don’t already have ClickStack running:Verify the demo data
Once imported:- Open HyperDX at http://localhost:8080 and log in (create an account if needed)
- Navigate to the Search view and set source to Metrics
- Set the time range to 2025-12-06 14:00:00 - 2025-12-09 14:00:00
- Search for
jvm.memory.usedorjvm.gc.duration
Timezone DisplayHyperDX displays timestamps in your browser’s local timezone. The demo data spans 2025-12-07 14:00:00 - 2025-12-08 14:00:00 (UTC). Set your time range to 2025-12-06 14:00:00 - 2025-12-09 14:00:00 to ensure you see the demo metrics regardless of your location. Once you see the metrics, you can narrow the range to a 24-hour period for clearer visualizations.
Dashboards and visualization
To help you monitor JVM applications with ClickStack, we provide a pre-built dashboard with essential visualizations for JVM metrics.the dashboard configuration
Import the pre-built dashboard
- Open HyperDX and navigate to the Dashboards section
- Click Import Dashboard in the upper right corner under the ellipses
- Upload the
jvm-metrics-dashboard.jsonfile and click Finish Import
View the dashboard
The dashboard will be created with all visualizations pre-configured:For the demo dataset, set the time range to 2025-12-07 14:00:00 - 2025-12-08 14:00:00 (UTC). Adjust based on your local timezone.
Troubleshooting
Agent not starting
Verify the agent JAR exists:No metrics appearing in HyperDX
Verify ClickStack is running and accessible:Next steps
- Set up alerts for critical metrics like high heap usage, frequent GC pauses, or thread exhaustion
- Explore other ClickStack integrations to unify your observability data