-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
Description
Describe the bug
As far as I can tell, the enabled flag for the internal metrics of a component (example in samplereceiver) has no functional effect. The metric will still be emitted by the Collector.
Steps to reproduce
- Change the
enabledflag in the link above tofalse. (This flag is for the internal metric of thesamplereceiver.) - Re-run
mdatagenand compare the generated files.
What did you expect to see?
I would expect some change in /cmd/mdatagen/internal/samplereceiver/internal/metadata/generated_telemetry.go with the effect of preventing the batch_size_trigger_send metric from being emitted.
What did you see instead?
The only change is that the metric is no longer listed in documentation.md.
Proposed solution
Removing the enabled flag entirely. This would avoid misleading component authors into thinking their metric is disabled.
This may be related to #11754.
Reactions are currently unavailable