seobandoe commented on a change in pull request #30713:
URL: https://github.com/apache/spark/pull/30713#discussion_r540847174



##########
File path: docs/monitoring.md
##########
@@ -1038,6 +1038,22 @@ This example shows a list of Spark configuration 
parameters for a Graphite sink:
 "spark.metrics.conf.*.sink.graphite.prefix"="optional_prefix"
 
"spark.metrics.conf.*.sink.graphite.regex"="optional_regex_to_send_matching_metrics"
 ```
+Also it could be done under spark session like:
+```
+import org.apache.spark.sql.SparkSession

Review comment:
       Yes, I loss two weeks and more than 80 hours of my life looking for a 
way to monitoring my scala-spark application, and there is not an easy an 
official example to do that. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to