Closed vijayrajah closed 5 years ago
@vijayrajah can you check that the appropriate version of the dependent jars is copied to the host as well. You can find here the list of jars: https://github.com/banzaicloud/spark-metrics/blob/master/PrometheusSink.md#how-to-enable-prometheussink-in-spark
io.prometheus:simpleclient_dropwizard:0.3.0
io.prometheus:simpleclient_pushgateway:0.3.0
io.dropwizard.metrics:metrics-core:3.1.2
You can download the dependencies to a temp directory using the following steps:
mvn dependency:get -DgroupId=com.banzaicloud -DartifactId=spark-metrics_2.11 -Dversion=2.3-2.1.0
mkdir temp
mvn dependency:copy-dependencies -f ~/.m2/repository/com/banzaicloud/spark-metrics_2.11/2.3-2.1.0/spark-metrics_2.11-2.3-2.1.0.pom -DoutputDirectory=$(pwd)/temp
@stoader Yes, that fixed it Thanks... Sorry, i could not respond earlier...
Describe the bug Unable to push the data to Push Gateway
Here is the error stack
My Metrics.properties file
Steps to reproduce the issue: I copied the Jar from Maven - https://mvnrepository.com/artifact/com.banzaicloud/spark-metrics_2.11/2.3-2.1.0
Expected behavior
Screenshots
Additional context Pushgateway version: 0.9.1 Prometheus version: 2.12.0
Similar issues have been reported https://github.com/census-instrumentation/opencensus-java/issues/1215