Git Product home page Git Product logo

Comments (6)

stoader avatar stoader commented on June 12, 2024

Hi @azelezni , can you share your metrics-name-capture-regex, name-replacement settings of your PrometheusSink config?

What version of spark-metrics library are you using?

from spark-metrics.

azelezni avatar azelezni commented on June 12, 2024

Hi @stoader, I'm using spark 2.3.2 with the latest spark-metrics release,
I was able to get around this using the following metrics.properties

*.sink.prometheus.class=com.banzaicloud.spark.metrics.sink.PrometheusSink
*.sink.prometheus.pushgateway-address-protocol=http
*.sink.prometheus.pushgateway-address=fkpr-prometheus-pushgateway.fkpr:9091
*.sink.prometheus.period=10
*.sink.prometheus.unit=seconds
*.sink.prometheus.pushgateway-enable-timestamp=false
*.sink.prometheus.enable-dropwizard-collector=true
*.sink.prometheus.enable-jmx-collector=false
master.sink.prometheus.metrics-name-capture-regex=(.*)
master.sink.prometheus.metrics-name-replacement=master_$1
worker.sink.prometheus.metrics-name-capture-regex=(.*)
worker.sink.prometheus.metrics-name-replacement=worker_$1
executor.sink.prometheus.metrics-name-capture-regex=(.*)
executor.sink.prometheus.metrics-name-replacement=executor_$1
driver.sink.prometheus.metrics-name-capture-regex=(.*)
driver.sink.prometheus.metrics-name-replacement=driver_$1
applications.sink.prometheus.metrics-name-capture-regex=(.*)
applications.sink.prometheus.metrics-name-replacement=app_$1

from spark-metrics.

stoader avatar stoader commented on June 12, 2024

@azelezni can you provide the metrics.properties that repros the issue with?

Note that the exception above was published from shuffle service

2019-01-16 08:16:41 INFO  PrometheusSink:54 - metricsNamespace=None, sparkAppName=None, sparkAppId=None, executorId=None
2019-01-16 08:16:41 INFO  PrometheusSink:54 - role=shuffle, job=shuffle

Are you running external shuffle service as well?

If not than the reason why metrics are being reported as coming from shuffle is that spark-metrics is currently prepared for spark jobs where metrics are published from driver, executor and shuffle service and not prepared for standalone spark depoyments (see https://github.com/banzaicloud/spark-metrics/blob/2.3-2.0.4/src/main/scala/com/banzaicloud/spark/metrics/sink/PrometheusSink.scala#L79)

from spark-metrics.

azelezni avatar azelezni commented on June 12, 2024

The following metrics.properties causes the error:

*.sink.prometheus.class=com.banzaicloud.spark.metrics.sink.PrometheusSink
*.sink.prometheus.pushgateway-address-protocol=http
*.sink.prometheus.pushgateway-address=fkpr-prometheus-pushgateway.fkpr:9091
*.sink.prometheus.period=10
*.sink.prometheus.unit=seconds
*.sink.prometheus.pushgateway-enable-timestamp=false
*.sink.prometheus.enable-dropwizard-collector=true
*.sink.prometheus.enable-jmx-collector=false

Yes I'm running spark standalone, however I think that with the regex replacement it's good enough for my needs.

from spark-metrics.

stoader avatar stoader commented on June 12, 2024

Can you do re-run with debug log level enabled ? That would log the payload being sent to push gateway.

from spark-metrics.

stoader avatar stoader commented on June 12, 2024

Closing this issue. Please re-open if this issue surfaces again

from spark-metrics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.