Github user zsxwing commented on a diff in the pull request:
https://github.com/apache/spark/pull/18485#discussion_r125128668
--- Diff: docs/structured-streaming-programming-guide.md ---
@@ -1922,6 +1953,15 @@ Not available in R.
</div>
</div>
+### Reporting Metrics using Dropwizard
+Spark supports reporting metrics using the [Dropwizard
Library](monitoring.html#metrics). To enable metrics of Structured Streaming
queries to be reported as well, you have to explicitly enable the configuration
`spark.sql.streaming.metricsEnabled` in the SparkSession.
+
+{% highlight bash %}
+spark.conf().set("spark.sql.streaming.metricsEnabled", "true")
--- End diff --
I assume this is Java codes. Do you need to add example for Scala and
Python?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]