Closed alhardy closed 6 years ago
Simplest approach is the following from an application point of view. This way AppMetrics doesn't need any custom configuration of sorts or a dependency on IConfiguration
var influxOptions = new MetricsReportingInfluxDbOptions();
configuration.GetSection(nameof(MetricsReportingInfluxDbOptions)).Bind(influxOptions);
...
builder.Report.ToInfluxDb(influxOptions);
...
Before finding this, I have read your docs, and haven't find the way to do this. It is worth adding to the documentation. Also it would be great if such things could be available out of the box.
Cool, open a new issue?
Feel free to PR to documentation
Dependency on Microsoft DI and Configuration has been removed by default, still require a way to load settings from config