-
Notifications
You must be signed in to change notification settings - Fork 110
Metrics Reporting
Yorick Smeets edited this page Jun 9, 2020
·
4 revisions
The Metrics.NET library provides the following out of the box implementations for reporting or visualizing metrics:
- Http Endpoint Reports: JSON, text, charting app and custom reports
- Console Metrics
- CSV File per Metric
- Human Readable text file
- Graphite
- InfluxDb
- ElasticSearch
- External Reporters
###Console Report Schedule a console report to be run and displayed every 10 seconds:
Metric.Config.WithReporting(report => report
.WithConsoleReport(TimeSpan.FromSeconds(10)));
###CSV File Report Schedule a line to be appended for each metric to a csv file:
Metric.Config.WithReporting(report => report
.WithCSVReports(@"c:\temp\reports\", TimeSpan.FromSeconds(10)));
###Human Readable text file Schedule a human readable text version of the current metrics to be written to a file every 1 minute:
Metric.Config.WithReporting(report => report
.WithTextFileReport(@"C:\temp\reports\metrics.txt", TimeSpan.FromMinutes(1)));
For any issues please use the GitHub issues. For any other questions and ideas feel free to ping us: @PaulParau, @HinteaDan, @BogdanGaliceanu.