Hello,
I'm just starting with AppMetrics and InfluxDb followed docs, but stuck on one issue for entire day.
https://www.app-metrics.io/reporting/reporters/influx-data/
I find this configuration example
var filter = new MetricsFilter().WhereType(MetricType.Timer);
var metrics = new MetricsBuilder()
.Report.ToInfluxDb(
options => {
options.InfluxDb.BaseUri = new Uri("http://127.0.0.1:8086");
options.InfluxDb.Database = "metricsdatabase";
options.InfluxDb.Consistenency = "consistency";//Should be removed from sample
options.InfluxDb.UserName = "admin";
options.InfluxDb.Password = "password";
options.InfluxDb.RetensionPolicy = "rp";//Should be removed from sample
options.InfluxDb.CreateDataBaseIfNotExists = true;
options.HttpPolicy.BackoffPeriod = TimeSpan.FromSeconds(30);
options.HttpPolicy.FailuresBeforeBackoff = 5;
options.HttpPolicy.Timeout = TimeSpan.FromSeconds(10);
options.MetricsOutputFormatter = new MetricsInfluxDbLineProtocolOutputFormatter();
options.Filter = filter;
options.FlushInterval = TimeSpan.FromSeconds(20);
})
.Build();
I understand that BaseUri, database, username and password are required to report data and need to be changed accordingly, however consistency and retentionPolicy configs seems like defaults and I left them unchanged. This leads into new database being created in InfluxDb, but no data reported, fails silently.
Removed these two lines and everything works fine.
RetensionPolicy and Consistenency options are documented bellow with all other options, I think it would be best to remove these two lines from configuration sample.
Hello,
I'm just starting with AppMetrics and InfluxDb followed docs, but stuck on one issue for entire day.
https://www.app-metrics.io/reporting/reporters/influx-data/
I find this configuration example
I understand that BaseUri, database, username and password are required to report data and need to be changed accordingly, however consistency and retentionPolicy configs seems like defaults and I left them unchanged. This leads into new database being created in InfluxDb, but no data reported, fails silently.
Removed these two lines and everything works fine.
RetensionPolicy and Consistenency options are documented bellow with all other options, I think it would be best to remove these two lines from configuration sample.