Skip to content

[Prometheus][Collector] Support Customizing condition #5259

Description

@BenB196

Today the Prometheus Collector integration's condition is hardcoded to a bool for leader election:

condition: ${kubernetes_leaderelection.leader} == true

The issue with this is it makes it so that the Prometheus collector integration can't be used for auto-discovery. Similar to other integrations

Example, Istio:

Given that Prometheus is one of the more common methods for exposing metrics within things like Kubernetes, it would be a great value add to be able to define conditions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:Cloudnative-MonitoringCloud Native Monitoring team [elastic/obs-cloudnative-monitoring]

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions