Closed hectorcaban closed 6 years ago
this is my seetings var metrics = new MetricsBuilder()
.Report.ToConsole() .Report.ToInfluxDb( options => { options.InfluxDb.BaseUri = new Uri("http://127.0.0.1:8086"); options.InfluxDb.Database = "metricsdatabase"; options.InfluxDb.Consistenency = "consistency"; // options.InfluxDb.UserName = "admin"; // options.InfluxDb.Password = "password"; options.InfluxDb.RetentionPolicy = "rp"; 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(5); }) .Build(); //var influxOptions = new MetricsReportingInfluxDbOptions(); //Configuration.GetSection(nameof(MetricsReportingInfluxDbOptions)).Bind(influxOptions); //influxOptions.MetricsOutputFormatter = new MetricsInfluxDbLineProtocolOutputFormatter(); // var mb = AppMetrics.CreateDefaultBuilder() // .Configuration.ReadFrom(Configuration) // .Report.ToConsole(); // services.AddMetrics(metrics); services.AddMetrics(metrics); services.AddHealth(); // services.AddHealthChecks(); services.AddMetricsTrackingMiddleware(); services.AddMetricsEndpoints(); //services.addmet // services.AddMetricsReportScheduler(); // services.AddMvc.AddMetrics; services.AddMvcCore().AddMetricsCore()
When I check the data influxdb using select from /./ I see data in the database but when viewing the data in graphana , I dont usee any data. but I do see my enviornment, application, datasource.
never mind I got fixed
this is my seetings var metrics = new MetricsBuilder()
When I check the data influxdb using select from /./ I see data in the database but when viewing the data in graphana , I dont usee any data. but I do see my enviornment, application, datasource.