App Metrics 1.0 Fork me on GitHub
Show / Hide Table of Contents

Graphite Reporter

Metrics can be reported to Graphite using the App.Metrics.Extensions.Reporting.Graphite nuget package.

  1. First see the getting started guide.
  2. 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.

  • Edit this Doc
Back to top Copyright © 2017 Allan Hardy
Generated by DocFX