Skip to content

Cannot inject envs to targetAllocator #1773

Open
@sumo-drosiek

Description

We have several serviceMonitors, which are using environment variables, e.g:

spec:
  endpoints:
  - port: otelcol-metrics
  namespaceSelector:
    matchNames:
    - $(NAMESPACE)
  selector:
    matchLabels:
      sumologic.com/app: fluentd-metrics
      sumologic.com/scrape: "true"

It would be nice to add and support env in targetAllocator so we could seamlessly migrate from Prometheus to OpenTelemetry

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions