Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send to Prometheus not available from Python #28

Closed
nadenf opened this issue Feb 5, 2020 · 1 comment
Closed

Send to Prometheus not available from Python #28

nadenf opened this issue Feb 5, 2020 · 1 comment

Comments

@nadenf
Copy link

nadenf commented Feb 5, 2020

It is not possible to call:

  def sendReportPrometheus(serverIPnPort: String,
                 metricsJob: String,
                 labelName: String = sparkSession.sparkContext.appName,
                 labelValue: String = sparkSession.sparkContext.applicationId): Unit

From Python.

@LucaCanali
Copy link
Owner

It should be possible to call from Python. I think you can experiment with using something like this example:

stagemetrics = StageMetrics(spark)
...
stagemetrics.stagemetrics.sendReportPrometheus(serverIPnPort, metricsJob, labelName,labelValue)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants