Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monitoring spark 3.0 with Prometheus in K8s #1

Open
marcoverl opened this issue Nov 6, 2020 · 1 comment
Open

monitoring spark 3.0 with Prometheus in K8s #1

marcoverl opened this issue Nov 6, 2020 · 1 comment

Comments

@marcoverl
Copy link

Hi,
i had a look at https://dzlab.github.io/bigdata/2020/07/03/spark3-monitoring-2/ but something is not clear:
according to https://databricks.com/session_na20/native-support-of-prometheus-monitoring-in-apache-spark-3-0 adding kubernetes annotations as spark.kubernetes.driver.annotation.prometheus.io/scrape=true -c spark.kubernetes.driver.annotation.prometheus.io/path=/metrics/prometheus/ -c spark.kubernetes.driver.annotation.prometheus.io/port=4040 -c spark.kubernetes.driver.service.annotation.prometheus.io/scrape=true -c spark.kubernetes.driver.service.annotation.prometheus.io/path=/metrics/executors/prometheus/ -c spark.kubernetes.driver.service.annotation.prometheus.io/port=4040 …
should be enough to allow Prometheus to discover pods/services to monitor.
Do you agree?
I don't like much the idea to manually add labels to the driver service, also because is not possible to do this automatically via spark configuration as can be done for annotations.

@dzlab
Copy link
Owner

dzlab commented Dec 22, 2021

Kubernetes annotations are different from spark configuration and are not used for same thing. Prometheus will use those annotations to discover and scrape the metrics from the endpoint exposed by spark service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants