You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I set the interval 5 seconds to sync,always using last histogram data,sush as count, max, min .
I just want to get the latest 1 minute data, not contains the data before.
my init:
`
var host = ConfigurationManager.AppSettings["Metrics.InfluxDb.Host"];
var port = ushort.Parse(ConfigurationManager.AppSettings["Metrics.InfluxDb.Port"]);
var database = ConfigurationManager.AppSettings["Metrics.InfluxDb.DB"];
var userName = ConfigurationManager.AppSettings["Metrics.InfluxDb.UserName"];
var password = ConfigurationManager.AppSettings["Metrics.InfluxDb.Password"];
var intervalSeconds = double.Parse(ConfigurationManager.AppSettings["Metrics.InfluxDb.Interval.Seconds"]);
var environment = ConfigurationManager.AppSettings["Environment"];
var batchSize = int.Parse(ConfigurationManager.AppSettings["Metrics.InfluxDb.BatchSize"]);
then , I change the default value in HistogramMetric.cs public HistogramValue GetValue(bool resetMetric = true) { var value = new HistogramValue(this.last.Value, this.last.UserValue, this.reservoir.GetSnapshot(resetMetric)); if (resetMetric) { this.Reset(); } return value; }
It is ok now, but I cannot believe it Please help me, thanks.
The text was updated successfully, but these errors were encountered:
when I set the interval 5 seconds to sync,always using last histogram data,sush as count, max, min .
I just want to get the latest 1 minute data, not contains the data before.
my init:
`
var host = ConfigurationManager.AppSettings["Metrics.InfluxDb.Host"];
var port = ushort.Parse(ConfigurationManager.AppSettings["Metrics.InfluxDb.Port"]);
var database = ConfigurationManager.AppSettings["Metrics.InfluxDb.DB"];
var userName = ConfigurationManager.AppSettings["Metrics.InfluxDb.UserName"];
var password = ConfigurationManager.AppSettings["Metrics.InfluxDb.Password"];
var intervalSeconds = double.Parse(ConfigurationManager.AppSettings["Metrics.InfluxDb.Interval.Seconds"]);
var environment = ConfigurationManager.AppSettings["Environment"];
var batchSize = int.Parse(ConfigurationManager.AppSettings["Metrics.InfluxDb.BatchSize"]);
`
then , I change the default value in HistogramMetric.cs
public HistogramValue GetValue(bool resetMetric = true) { var value = new HistogramValue(this.last.Value, this.last.UserValue, this.reservoir.GetSnapshot(resetMetric)); if (resetMetric) { this.Reset(); } return value; }
It is ok now, but I cannot believe it Please help me, thanks.
The text was updated successfully, but these errors were encountered: