You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within an HPA spec. a label selector can be used to describe a metric:
Many metrics pipelines allow you to describe metrics either by name or by a set of additional descriptors called labels. For all non-resource metric types (pod, object, and external, described below), you can specify an additional label selector which is passed to your metric pipeline. For instance, if you collect a metric http_requests with the verb label, you can specify the following metric block to scale only on GET requests:
This selector uses the same syntax as the full Kubernetes label selectors. The monitoring pipeline determines how to collapse multiple series into a single value, if the name and selector match multiple series. The selector is additive, and cannot select metrics that describe objects that are not the target object (the target pods in the case of the Pods type, and the described object in the case of the Object type).
If we want to support this feature we need to understand what is a label in the context of a document stored in Elasticsearch.
Note that the same question can be raised in the context of External metrics, however they are not likely to be supported as part of a first release of the adapter:
Within an HPA spec. a label selector can be used to describe a metric:
(see original documentation here)
For the moment
metricSelector labels.Selector
is not used to retrieve a metric:elasticsearch-k8s-metrics-adapter/pkg/client/elasticsearch/client.go
Lines 212 to 220 in 39a36d9
elasticsearch-k8s-metrics-adapter/pkg/client/elasticsearch/client.go
Lines 242 to 245 in 39a36d9
If we want to support this feature we need to understand what is a label in the context of a document stored in Elasticsearch.
Note that the same question can be raised in the context of
External
metrics, however they are not likely to be supported as part of a first release of the adapter:elasticsearch-k8s-metrics-adapter/pkg/client/elasticsearch/client.go
Lines 175 to 186 in 39a36d9
The text was updated successfully, but these errors were encountered: