title: 'Component Metrics' sidebar_label: 'Component Metrics' description: 'Learn how to enable optional component metrics.' sidebar_position: 1 pagination_prev: null pagination_next: null tags:
Component metrics provide detailed insights into the internal state and performance of individual components in Spice. Each component can expose its own set of metrics that can be enabled selectively to monitor specific aspects of its operation.
Component metrics are disabled by default and can be enabled by adding a metrics section to the component configuration. Each metric can be enabled individually by specifying its name in the metrics list.
Each component defines its own set of available metrics. These metrics are exposed in the Prometheus format with the following naming convention:
For example, a MySQL dataset component's metrics would be prefixed with dataset_mysql_.
Component metrics are exposed through the same Prometheus-compatible metrics endpoint as other Spice metrics. These metrics can be accessed using standard Prometheus tools or any monitoring system that supports Prometheus metrics.
To view the metrics, make a GET request to the metrics endpoint:
The response will include all enabled component metrics in Prometheus format, with proper HELP and TYPE annotations.
For detailed information about metrics available for specific components, view all components that expose metrics.