mirror of
				https://github.com/Stunkymonkey/nixos.git
				synced 2025-10-30 01:12:10 +01:00 
			
		
		
		
	service/jellyfin: update metric patching
This commit is contained in:
		
							parent
							
								
									0326d1e7b5
								
							
						
					
					
						commit
						6d7f4e1448
					
				
					 2 changed files with 17 additions and 10 deletions
				
			
		|  | @ -6,8 +6,15 @@ let | ||||||
|   port = 8096; |   port = 8096; | ||||||
|   # enable monitoring |   # enable monitoring | ||||||
|   jellyfin-with-metrics = pkgs.jellyfin.overrideAttrs (attrs: { |   jellyfin-with-metrics = pkgs.jellyfin.overrideAttrs (attrs: { | ||||||
|     # with this patch the default setting for metrics is changed |     patches = | ||||||
|     patches = attrs.patches ++ [ ./enable-metrics.patch ]; |       let | ||||||
|  |         existingPatches = | ||||||
|  |           if attrs ? patches && builtins.isList attrs.patches | ||||||
|  |           then attrs.patches | ||||||
|  |           else [ ]; | ||||||
|  |       in | ||||||
|  |       # with this patch the default setting for metrics is changed | ||||||
|  |       existingPatches ++ [ ./enable-metrics.patch ]; | ||||||
|   }); |   }); | ||||||
| in | in | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -1,13 +1,13 @@ | ||||||
| diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
 | diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
 | ||||||
| index 07f02d1879..0f1c2e0cb8 100644
 | index 52f7e53b81..b149e3251a 100644
 | ||||||
| --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs
 | --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs
 | ||||||
| +++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
 | +++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
 | ||||||
| @@ -66,7 +66,7 @@ namespace MediaBrowser.Model.Configuration
 | @@ -67,7 +67,7 @@ public class ServerConfiguration : BaseApplicationConfiguration
 | ||||||
|          /// <summary> |      /// <summary> | ||||||
|          /// Gets or sets a value indicating whether to enable prometheus metrics exporting. |      /// Gets or sets a value indicating whether to enable prometheus metrics exporting. | ||||||
|          /// </summary> |      /// </summary> | ||||||
| -        public bool EnableMetrics { get; set; } = false;
 | -    public bool EnableMetrics { get; set; } = false;
 | ||||||
| +        public bool EnableMetrics { get; set; } = true;
 | +    public bool EnableMetrics { get; set; } = true;
 | ||||||
|   |   | ||||||
|          public bool EnableNormalizedItemByNameIds { get; set; } = true; |      public bool EnableNormalizedItemByNameIds { get; set; } = true; | ||||||
|   |   | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Felix Buehler
						Felix Buehler