【发布时间】:2022-02-16 06:13:04
【问题描述】:
我们已经在 Kubernetes 集群中部署了微服务应用程序。我们需要在 Kubernetes 集群上运行 locust 负载测试工具,并将指标发送给 Prometheus。 Kubernetes集群环境下如何获取locust loadtest数据到Prometheus。
【问题讨论】:
标签: python kubernetes microservices prometheus locust
我们已经在 Kubernetes 集群中部署了微服务应用程序。我们需要在 Kubernetes 集群上运行 locust 负载测试工具,并将指标发送给 Prometheus。 Kubernetes集群环境下如何获取locust loadtest数据到Prometheus。
【问题讨论】:
标签: python kubernetes microservices prometheus locust
如果您已经在服务中向 prometheus 发送了指标,那么任何负载测试都会触发这些指标,就像任何其他休息调用一样。
【讨论】:
使用 prometheus-locust-exporter 之类的导出器:https://github.com/deliveryhero/helm-charts/tree/master/stable/prometheus-locust-exporter
您可以使用 Grafana 查看指标。
【讨论】: