Collector componenents utilize prometheus metrics
#7,960 opened on Jun 23, 2023
Repository metrics
- Stars
- (7,237 stars)
- PR merge metrics
- (PR metrics pending)
Description
Is your feature request related to a problem? Please describe.
There should be a way for a collector's componeents to interact with the prometheus endpoint of the collector. There does not seem like a straightforward way, or at least not documented of how to add metrics from say an exporter to the collector prometheus endpoint.
Describe the solution you'd like
A way to add metrics derived from components such as receiver, processor, exporter etc to the default prometheus endpont of a collector.
Describe alternatives you've considered Perhaps another prometheus endpoint has to be stood up that represents component metrics?
Additional context
My overall experience with bulding components for a custom collector has been less than optimal. There is lacking documentation of helper packages, where a logger is derived from (the CreateSettings). Perhaps the issue is the documentation is just scattered everywhere.