title: Sending Metrics: Spark to Graphite
body: <p>We managed to get Spark (2.x) to send metrics to graphite by changing the metrics.properties file as below:</p>
  
  <pre><code># Enable Graphite
  *.sink.graphite.class=org.apache.spark.metrics.sink.GraphiteSink
  *.sink.graphite.host=graphite-host
  *.sink.graphite.port=2003
  *.sink.graphite.period=5
  *.sink.graphite.prefix=my-app
  </code></pre>
  
  <p>However I noticed that we are getting only a subset of the metrics in graphite compared to what we get under Monitoring Web UI (<a href="http://localhost:4040" rel="nofollow noreferrer">http://localhost:4040</a>). Is there any settings to get all the metrics (including Accumulators) in graphite?</p>