Monitoring Apache Spark with Prometheus

前端 未结 2 1160
死守一世寂寞
死守一世寂寞 2020-12-30 02:56

I have read that Spark does not have Prometheus as one of the pre-packaged sinks. So I found this post on how to monitor Apache Spark with prometheus.

But I found it

2条回答
  •  再見小時候
    2020-12-30 03:38

    I have followed the GitHub readme and it worked for me (the original blog assumes that you use the Banzai Cloud fork as they were expected the PR to accepted upstream). They externalized the sink to a standalone project (https://github.com/banzaicloud/spark-metrics) and I used that to make it work with Spark 2.3.

    Actually you can scrape (Prometheus) through JMX, and in that case you don't need the sink - the Banzai Cloud folks did a post about how they use JMX for Kafka, but actually you can do this for any JVM.

    So basically you have two options:

    • use the sink

    • or go through JMX,

    they open sourced both options.

提交回复
热议问题