Documentation Index
Fetch the curated documentation index at: https://grafana_com_website/llms.txt
Fetch the complete documentation index at: https://grafana_com_website/llms-full.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Grafana documentation page. Always request the Markdown version instead - HTML wastes context. Get this page as Markdown: /docs/grafana-cloud/send-data/alloy/troubleshoot/component_metrics.md (append .md) or send Accept: text/markdown to /docs/grafana-cloud/send-data/alloy/troubleshoot/component_metrics/. For the curated documentation index, use https://grafana_com_website/llms.txt. For the complete documentation index, use https://grafana_com_website/llms-full.txt.
Monitor components
Alloy components may optionally expose Prometheus metrics which can be used to investigate the behavior of that component. These component-specific metrics are only generated when an instance of that component is running.
Component-specific metrics are different than any metrics processed by the component. Component-specific metrics are used to expose the state of a component for observability, alerting, and debugging.
Component-specific metrics are exposed at the /metrics HTTP endpoint of the Alloy HTTP server, which defaults to listening on http://localhost:12345.
The documentation for the
alloy runcommand describes how to modify the address Alloy listens on for HTTP traffic.
Component-specific metrics have a component_id label matching the component ID generating those metrics.
For example, component-specific metrics for a prometheus.remote_write component labeled production has a component_id label with the value prometheus.remote_write.production.
The reference documentation for each component described the list of component-specific metrics that the component exposes. Not all components expose metrics.
Was this page helpful?
Related resources from Grafana Labs


