Py学习  »  MQ

如何获取RabbitMQ的水平吊舱自动缩放指标?

Vitaly • 4 年前 • 731 次点击  

我正在运行GKE Kubernetes cluster v11.3,并尝试对HPA使用RabbitMQ度量。 我确实看到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

我错过了什么?

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/52582
 
731 次点击