-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
Component(s)
receiver/prometheus
Describe the issue you're reporting
The prometheus receiver currently imports all service discovery implementations supported by Prometheus. A previous analysis from a Google team that used the collector found that this increased the binary size and memory footprint by ~50 Mb (although that may have changed).
It should be possible for distributions to exclude service discovery implementations they don't need. However, this will break any users currently relying on those.
While doing this, we should ensure that existing distributions (e.g. contrib) continue to support all of the existing service discovery implementations they support today, and we should make sure other distributions built using the OpenTelemetry Collector Builder have a mechanism to include them as well.
The question I don't have an answer to is: Is there a way to add an import (without it being a collector "component") to an OCB manifest? Or do we need to wrap this in an "extension" or something like that to make it work. (cc @braydonk)
@open-telemetry/prometheus-interoperability
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.