Skip to content
etishor edited this page Nov 29, 2014 · 2 revisions

Sending Metrics to Graphite is a new feature and should be considered alpha quality. Any feedback will be appreciated.

The Metrics.NET library also implements a GraphiteReport which allows your application to constantly stream metric values to a Graphite server:

Metric.Config.WithReporting(report => report
    .WithGraphite(new Uri("net.udp://localhost:2003"), TimeSpan.FromSeconds(1))

Supported protocols, can be controlled from the uri schema of by using the specific extension method:

  • UDP net.udp://host:port or .WithUDPGraphite(host,port)
  • TCP ("net.tcp://host:port") .WithTCPGraphite(host,port)
  • Pickled ("net.pickled://host:port") .WithPickledGraphite(host,port)