Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/18485#discussion_r125825619
--- Diff: docs/structured-streaming-programming-guide.md ---
@@ -1922,6 +1980,39 @@ 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.
+
+<div class="codetabs">
+<div data-lang="scala" markdown="1">
+
+{% highlight scala %}
+spark.conf.set("spark.sql.streaming.metricsEnabled", "true")
+{% endhighlight %}
+
+</div>
+<div data-lang="java" markdown="1">
+
+{% highlight java %}
+spark.conf().set("spark.sql.streaming.metricsEnabled", "true");
+{% endhighlight %}
+
+</div>
+<div data-lang="python" markdown="1">
+
+{% highlight python %}
+spark.conf.set("spark.sql.streaming.metricsEnabled", "true")
+{% endhighlight %}
+
+</div>
+<div data-lang="r" markdown="1">
+
+</div>
--- End diff --
@felixcheung Can you suggest the R version of this?
---
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]