mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 17:57:51 +00:00
feat: use Default metric providers
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
This commit is contained in:
parent
27eb607509
commit
37f6ffb4b5
8 changed files with 271 additions and 598 deletions
|
|
@ -37,6 +37,7 @@ import (
|
|||
"k8s.io/metrics/pkg/apis/custom_metrics"
|
||||
|
||||
"sigs.k8s.io/custom-metrics-apiserver/pkg/provider"
|
||||
"sigs.k8s.io/custom-metrics-apiserver/pkg/provider/defaults"
|
||||
"sigs.k8s.io/custom-metrics-apiserver/pkg/provider/helpers"
|
||||
|
||||
prom "sigs.k8s.io/prometheus-adapter/pkg/client"
|
||||
|
|
@ -56,6 +57,7 @@ type prometheusProvider struct {
|
|||
kubeClient dynamic.Interface
|
||||
promClient prom.Client
|
||||
|
||||
defaults.DefaultCustomMetricsProvider
|
||||
SeriesRegistry
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue