Skip to content

Add ability to expose metrics in non leader pods #999

@lilic

Description

@lilic

Feature Request

Is your feature request related to a problem? Please describe.
Metrics serving is being started only when we call the Start() in controller-runtime, we lock any non leaders with a lock before we call the Start() in the generated operators. Due to this the metrics are only being served for non leader pods.

Describe the solution you'd like
We have two possible solutions:

  1. Serve the metrics independently of controller-runtime, this requires us disabling serving of metrics altogether in controller-runtime.
  2. Add new feature in controller-runtime to start serving metric independently of starting the manager.

See #786 (comment) for full background.

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions