Added option to disable metrics collection and defaulted it to off

This commit is contained in:
sparky8251
2020-04-26 11:28:17 -04:00
parent 233337256f
commit 68c7a914c3
7 changed files with 56 additions and 7 deletions

View File

@@ -19,6 +19,11 @@ namespace MediaBrowser.Model.Configuration
/// </summary>
public bool EnableUPnP { get; set; }
/// <summary>
/// Gets or sets a value indicating whether to enable prometheus metrics exporting.
/// </summary>
public bool EnableMetrics { get; set; }
/// <summary>
/// Gets or sets the public mapped port.
/// </summary>
@@ -246,6 +251,7 @@ namespace MediaBrowser.Model.Configuration
PublicHttpsPort = DefaultHttpsPort;
HttpServerPortNumber = DefaultHttpPort;
HttpsPortNumber = DefaultHttpsPort;
EnableMetrics = false;
EnableHttps = false;
EnableDashboardResponseCaching = true;
EnableCaseSensitiveItemIds = true;