Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 874 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 874 Bytes

Metrics.NET.RabbitMQ

RabbitMQ reporter for Metrics.NET

Nuget package.

Supports the followinging exchange types:

  • topic
  • fanout
  • direct

Example:

            Metric.Config
                .WithAllCounters()
                .WithInternalMetrics()
                .WithReporting(config => config
                    .WithRabbitMQ(new RabbitMQReportsConfig
                    {
                        HostName = "localhost",
                        Password = "guest",
                        UserName = "guest"

                    }, TimeSpan.FromSeconds(3)));

Metrics.NET sends all pre-registered CLR counters and internal metics to RabbitMQ with the default exchange type "topic" and it uses the default exchanege "metrics" with "metrics" routing key.