data-storyteller opened a new issue #3760:
URL: https://github.com/apache/hudi/issues/3760


   **_Tips before filing an issue_**
   
   - Have you gone through our 
[FAQs](https://cwiki.apache.org/confluence/display/HUDI/FAQ)?
   
   - Join the mailing list to engage in conversations and get faster support at 
[email protected].
   
   - If you have triaged this as a bug, then file an 
[issue](https://issues.apache.org/jira/projects/HUDI/issues) 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 -
         ```
         --hoodie-conf   hoodie.metrics.on=true
         --hoodie-conf  hoodie.metrics.reporter.type=PROMETHEUS
         --hoodie-conf  hoodie.metrics.pushgateway.host=host
         --hoodie-conf hoodie.metrics.prometheus.port=9090
         ```
   
   
   
   **To Reproduce**
   
   Steps to reproduce the behavior:
   
   1. Run Prometheus server
   2. Run Spark job with above hudi config
   
   **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**
   
   ```
   Exception in thread "main" java.lang.NoSuchMethodError: 'void 
io.prometheus.client.dropwizard.DropwizardExports.<init>(org.apache.hudi.com.codahale.metrics.MetricRegistry)'
        at 
org.apache.hudi.metrics.prometheus.PrometheusReporter.<init>(PrometheusReporter.java:49)
        at 
org.apache.hudi.metrics.MetricsReporterFactory.createReporter(MetricsReporterFactory.java:75)
        at org.apache.hudi.metrics.Metrics.<init>(Metrics.java:50)
        at org.apache.hudi.metrics.Metrics.init(Metrics.java:96)
        at 
org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamerMetrics.<init>(HoodieDeltaStreamerMetrics.java:44)
        at 
org.apache.hudi.utilities.deltastreamer.DeltaSync.<init>(DeltaSync.java:224)
        at 
org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer$DeltaSyncService.<init>(HoodieDeltaStreamer.java:606)
        at 
org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer.<init>(HoodieDeltaStreamer.java:143)
        at 
org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer.<init>(HoodieDeltaStreamer.java:107)
        at 
org.apache.hudi.integ.testsuite.HoodieDeltaStreamerWrapper.<init>(HoodieDeltaStreamerWrapper.java:39)
        at 
org.apache.hudi.integ.testsuite.HoodieTestSuiteWriter.<init>(HoodieTestSuiteWriter.java:88)
   
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to