kubernetes / cloud-provider-openstack

Apache License 2.0
616 stars 601 forks source link

[OCCM]use prometheus metrics to replace legacy one? #1534

Closed jichenjc closed 3 years ago

jichenjc commented 3 years ago

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug /kind feature

What happened: https://github.com/kubernetes/cloud-provider-openstack/blob/master/pkg/metrics/metrics_reconcile.go#L23 is using legacy metrics, can we move to prometheus (more up-to-date)

What you expected to happen:

How to reproduce it:

Anything else we need to know?:

Environment:

jichenjc commented 3 years ago

@seanschneeweiss can you help to provide some comments?

seanschneeweiss commented 3 years ago

I think that most metrics were migrated to legacyregistry as part of the KEP-1209: Metrics Stability Framework.

As far as I understand it, we are already using Prometheus wrapped behind the k8s.io/component-base/metrics package. Most other cloud providers are also creating metrics similar to us. E.g. this PR moves from Prometheus to k8s.io/component-base/metrics.

Not sure if we should move "back".

k8s-triage-robot commented 3 years ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

ramineni commented 3 years ago

/remove-lifecycle stale

ramineni commented 3 years ago

@jichenjc Can we close this?

jichenjc commented 3 years ago

ok, let's close this