简体   繁体   English

使用 Prometheus 监控大量小型 Spark 集群

[英]Monitoring a lot of small Spark clusters with Prometheus

当我每次需要时启动一个新集群时,如何使用 Prometheus(它使用“拉”方法)来监控我的 Spark 集群,这意味着我没有一个稳定的监控端点。

It depends a bit on how / where you spin up your clusters.这在一定程度上取决于您启动集群的方式/位置。 When using Kubernetes, you can use Kubernetes SD configurations to discover your targets or use the Prometheus Operator (see alsohere ).使用 Kubernetes 时,您可以使用Kubernetes SD 配置来发现您的目标或使用Prometheus Operator (另请参见此处)。

If running on EMR you could use bootstrap actions to configure the node_exporter and jmx_exporter .如果在 EMR 上运行,您可以使用引导操作来配置node_exporterjmx_exporter See this for an example how to do so.有关如何执行此操作的示例,请参见this

And alternatively, you could use the Prometheus Pushgateway together with a custom Spark sink ( example ) for this use case.或者,您可以将Prometheus Pushgateway与自定义 Spark 接收器( 示例)一起用于此用例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM