Closed data-storyteller closed 2 years ago
option("hoodie.metrics.on", "true").
option("hoodie.metrics.reporter.type", "PROMETHEUS_PUSHGATEWAY").
option("hoodie.metrics.pushgateway.host", "localhost").
option("hoodie.metrics.pushgateway.port", "9091").
option("hoodie.metrics.pushgateway.job.name", "spark_metrics_test").
option("hoodie.metrics.pushgateway.random.job.name.suffix", "false").
option("hoodie.metrics.pushgateway.delete.on.shutdown", "false").
this worked.
Before executing the spark write, I had started push gateway locally.
docker pull prom/pushgateway
docker run -d -p 9091:9091 prom/pushgateway
@nsivabalan I follow your configs and didnt have any error but I cant found the metrics on my prometheus, how should I search? What is the prefix?
thank you
I think spark never try to write to prometheus, even if I put a wrong address, no error.
@data-storyteller @rubenssoto can you check out this guide prepared by @nsivabalan (to be merged to website) and see the instructions help? https://github.com/apache/hudi/commit/959bd6eef8c90c11616840f975ef40a46222a913?short_path=aff66ea#diff-aff66ea1c34953a024c85c6e2fe86b8521b6cd3d623377a96d8d79c6caa8de13
@data-storyteller
Exception in thread "main" java.lang.NoSuchMethodError: 'void io.prometheus.client.dropwizard.DropwizardExports.<init>(org.apache.hudi.com.codahale.metrics.MetricRegistry)'
Looks like it's a jar issue. Are you using hudi bundle jar? can you print your classpath too?
I think spark never try to write to prometheus, even if I put a wrong address, no error.
@rubenssoto can you share your settings? @liujinhui1994 could you give any suggestions or hint to the prometheus problems above?
@rubenssoto : Can you please try out the suggestions from raymond and let us know if it worked. we wish to document the right steps in our website. would appreciate if you can confirm if it works.
CC @kywe665
@nsivabalan sorry it was my fault, I was using prometheus not prometheus push gateway, I thought it was the same thing, but it is not.
@rubenssoto : so, can I take it as it worked for you? (the proposed steps). once you ack, will close it out.
Tips before filing an issue
Have you gone through our FAQs?
Join the mailing list to engage in conversations and get faster support at dev-subscribe@hudi.apache.org.
If you have triaged this as a bug, then file an issue directly.
Describe the problem you faced
I am working on pushing HUDI metrics to Prometheus. The HUDI metrics are working good with GRAPHITE but not Prometheus.
HUDI Configs -
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Spark Job should push the HUDI metrics to prometheus
Environment Description
Hudi version : 0.9.0
Spark version : 3.1.1
Hive version : -
Hadoop version : -
Storage (HDFS/S3/GCS..) : -
Running on Docker? (yes/no) : -
Additional context
Add any other context about the problem here.
Stacktrace