Small change that allows users to pass a custom HttpMessageHandler to InfluxDb method, allowing to bypass certificate check for self signed certificates on server.
Usage:
var handler = new HttpClientHandler
{
ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => true
};
Metrics.Collector = new CollectorConfiguration()
.Tag.With("host", Config["hostname"])
.Batch.AtInterval(TimeSpan.FromSeconds(2))
.WriteTo.InfluxDB(uri, Config["influxdbname"], Config["influxusername"], Config["influxpassword"], handler)
.CreateCollector();
Small change that allows users to pass a custom HttpMessageHandler to InfluxDb method, allowing to bypass certificate check for self signed certificates on server.
Usage: