Prometheus exporter: struggle to compile

Hello,

I’m trying to compile the Prometheus exporter (GitHub - dremio-hub/dremio-prometheus-exporter)

I get the following error:

[WARNING] The POM for com.dremio.tools:errorprone-dremio:jar:24.0.0-202302100528110223-3a169b7c is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.220 s
[INFO] Finished at: 2023-03-15T21:42:57Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project dremio-telemetry-prometheus: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile failed: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.10.1 or one of its dependencies could not be resolved: Failure to find com.dremio.tools:errorprone-dremio:jar:24.0.0-202302100528110223-3a169b7c in https://maven.dremio.com/free/ was cached in the local repository, resolution will not be reattempted until the update interval of dremio-free has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

I think I’m failing to update the pom.xml correctly (I have 0 experience in Java)
what version should I put ? and where ?

Is there another Prometheus exporter ?

Thank you

@jjournet Sorry for the delay, any chance you tried to run it again with the -e switch?

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

@jjournet

We dont need to do this any more. We automatically expose prometheus metrics via http endpoint.

Can you please try and let us know

Thanks
Bali

I’ve also been trying to build this plugin as I was not aware that Dremio now exposed the metrics natively. Can you share the scrape endpoint? Also, is there any updated documentation that explains how to configure the build-in metrics?

@rs_trey

Would the below 2 help?

Whoa, thank you! The “Monitoring System Telemetry” page I kept reading still referenced the third-party exporter. I modified my StatefulSets and ConfigMap and can now see the metrics. Now to update my copy of the helm chart (since PRs aren’t accepted). Thanks again!

Thanks for the update @rs_trey Glad you are unblocked