You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/12/15 10:06:01 UTC
[GitHub] [spark] HyukjinKwon commented on a change in pull request #30713: Update monitoring.md
HyukjinKwon commented on a change in pull request #30713:
URL: https://github.com/apache/spark/pull/30713#discussion_r543208997
##########
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
+
+val spark = SparkSession.builder
+ .master(sparkconfig.getString("MASTER_URL"))
+ .config("spark.metrics.conf.*.sink.graphite.class","org.apache.spark.metrics.sink.GraphiteSink")
+ .config("spark.metrics.conf.*.sink.graphite.host","graphiteEndPoint_hostName>")
+ .config("spark.metrics.conf.*.sink.graphite.port",<graphite_listening_port>)
+ .config("spark.metrics.conf.*.sink.graphite.period",10)
+ .config("spark.metrics.conf.*.sink.graphite.unit","seconds")
+ .config("spark.metrics.conf.*.sink.graphite.prefix","optional_prefix")
+ .config("spark.metrics.conf.*.sink.graphite.regex","optional_regex_to_send_matching_metrics")
Review comment:
isn't this a copy paste of the configurations above? I don't think this is very useful.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org