Graphite Reporter
Metrics can be reported to Graphite using the App.Metrics.Extensions.Reporting.Graphite nuget package.
- First see the getting started guide.
- Configure the Graphite reporter as follows:
.AddReporting(factory =>
{
factory.AddGraphite(new GraphiteReporterSettings
{
HttpPolicy = new HttpPolicy
{
FailuresBeforeBackoff = 3,
BackoffPeriod = TimeSpan.FromSeconds(30),
Timeout = TimeSpan.FromSeconds(3)
},
GraphiteSettings = new GraphiteSettings(new Uri("net.tcp://127.0.0.1:2003")),
ReportInterval = TimeSpan.FromSeconds(5)
});
})
Note
UDP is supported as well as TCP, the protocol is determined by the Uri passed into GraphiteSettings
.
e.g.net.tcp://127.0.0.1:2003/
Or net.udp://127.0.0.1:2003/
.
Web Monitoring
See the generic Grafana web dashboards provided.