Как получить метрики RabbitMQ для автоматического масштабирования? - PullRequest
0 голосов
/ 18 марта 2019

Я использую кластер GKE Kubernetes v11.3 и пытаюсь использовать метрики RabbitMQ для HPA.Я вижу метрики RabbitMQ:

 kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1" | jq| grep rabbit
      "name": "*/agent.googleapis.com|rabbitmq|num_messages",

Но не могу использовать их в HorizontalPodAutoscaler:

ScalingActive  False   FailedGetPodsMetric  the HPA was unable to compute the replica count: unable to get metric rabbitmq|num_messages: unable to fetch metrics from custom metrics API: the server could not find the descriptor for metric rabbitmq/num_messages: googleapi: Error 404: Could not find descriptor for metric 'rabbitmq/num_messages'., notFound

Конфигурация метрики:

metrics:
  - type: External
    external:
      metricName: custom.googleapis.com|rabbitmq|num_messages

Чего мне не хватает?

...