disable metrics by default

pull/954/head
Jeff Becker 5 years ago
parent 950006c036
commit e90cb2929e
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -304,13 +304,17 @@ namespace llarp
void
MetricsConfig::fromSection(string_view key, string_view val)
{
if(key == "disable-metrics")
if(key == "enable-metrics")
{
disableMetrics = true;
disableMetrics = IsFalseValue(val);
}
else if(key == "disable-metrics")
{
disableMetrics = IsTrueValue(val);
}
else if(key == "disable-metrics-log")
{
disableMetricLogs = true;
disableMetricLogs = IsTrueValue(val);
}
else if(key == "json-metrics-path")
{

@ -246,8 +246,8 @@ namespace llarp
struct MetricsConfig
{
bool disableMetrics = false;
bool disableMetricLogs = false;
bool disableMetrics = true;
bool disableMetricLogs = true;
fs::path jsonMetricsPath;
std::string metricTankHost;
std::map< std::string, std::string > metricTags;

Loading…
Cancel
Save