amazon-archives / k8s-cloudwatch-adapter

An implementation of Kubernetes Custom Metrics API for Amazon CloudWatch
Apache License 2.0
158 stars 98 forks source link

Is it possible to work with multiple adapters? #36

Open benyitzhaki opened 4 years ago

benyitzhaki commented 4 years ago

Is there a way to work with more than a single adapter? For example, using both k8s-cloudwatch-adapter and prometheus-adapter. Once i tried to implemented both, only the latter was exposing metrics to /apis/external.metrics.k8s.io/v1beta1

Thanks

chankh commented 4 years ago

Currently this is a limitation in Kubernetes Metrics API, it is accepting only one adapter being registered with Metrics API, so the latter will always replace any previous adapter you've configured.