documentation/getting-started/web-console/metrics-view.md
import Screenshot from "@theme/Screenshot"
The Metrics View provides real-time monitoring capabilities for your QuestDB instance. It displays interactive charts and widgets that help you track database performance, WAL operations, and table-specific metrics.
<Screenshot alt="Metrics View in the Web Console" src="images/docs/console/metrics-view.webp" />
To use the Metrics View, you must enable telemetry on your QuestDB server:
Set the following in your server.conf file:
telemetry.enabled=true
Alternatively, set the environment variable:
QDB_TELEMETRY_ENABLED=true
After making these changes, restart your QuestDB server to enable telemetry collection.
Click the "Add metrics" button (chart icon) in the Schema Explorer toolbar. A new metrics tab will automatically open with the default interface.
:::info Metrics tabs are visually distinguished by their chart icon and blue color scheme in the tab bar. The "+" button in the tab bar creates new SQL editor tabs, not metrics tabs. :::
The Metrics View toolbar provides comprehensive controls for managing your monitoring experience.
<Screenshot alt="Metrics toolbar in the Web Console" src="images/docs/console/metrics-toolbar.webp" />
Each widget in the Metrics View provides comprehensive customization options.
<Screenshot alt="Metrics widget in the Web Console" src="images/docs/console/metric-widget.webp" width={514} height={232} />
The Metrics View supports several types of widgets, each providing specific insights:
This metric monitors the rate at which transactions are applied to tables. Performance is influenced by:
Compare against data source metrics to distinguish between ingestion bottlenecks and system performance limitations.
This metric displays rows processed per second during transaction merges. While similar to transaction throughput, this metric helps identify:
Use alongside transaction throughput to understand the relationship between transaction size and processing efficiency.
This metric indicates the time required for data to become readable after being written. Higher latency may stem from:
Monitor this metric alongside related charts to identify the root cause of performance variations and optimize accordingly.
This metric tracks the data write overhead during merge operations. Write amplification occurs when:
Scale ranges from optimal (1x) to problematic (1000x+). High amplification typically indicates duplicate data ingestion or suboptimal data ordering patterns.
This metric tracks the mean size of transactions processed through the database API. While the database is optimized for both small and large transactions, larger batch sizes generally lead to better database performance. Monitor this metric to understand your API's transaction patterns and identify opportunities for batch size optimization. Key aspects to observe:
:::info Metrics View displays key metrics for quick monitoring in the Web Console. For comprehensive metrics and advanced monitoring capabilities, see Prometheus monitoring and alerting. :::
This comprehensive monitoring capability helps you maintain optimal database performance and identify issues before they impact your applications.