WIP: fail2ban: Add metrics
This commit is contained in:
		
							parent
							
								
									3a818ecc21
								
							
						
					
					
						commit
						2232a471e3
					
				
					 10 changed files with 178 additions and 24 deletions
				
			
		
							
								
								
									
										21
									
								
								pkgs/_sources_pkgs/generated.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								pkgs/_sources_pkgs/generated.json
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,21 @@ | |||
| { | ||||
|     "prometheus-fail2ban-exporter": { | ||||
|         "cargoLocks": null, | ||||
|         "date": null, | ||||
|         "extract": null, | ||||
|         "name": "prometheus-fail2ban-exporter", | ||||
|         "passthru": null, | ||||
|         "pinned": false, | ||||
|         "src": { | ||||
|             "deepClone": false, | ||||
|             "fetchSubmodules": false, | ||||
|             "leaveDotGit": false, | ||||
|             "name": null, | ||||
|             "rev": "v0.10.0", | ||||
|             "sha256": "sha256-8nIW1XaHCBqQCoLkV1ZYE3NTbVZ6c+UOqYD08XQiv+4=", | ||||
|             "type": "git", | ||||
|             "url": "https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter" | ||||
|         }, | ||||
|         "version": "v0.10.0" | ||||
|     } | ||||
| } | ||||
							
								
								
									
										16
									
								
								pkgs/_sources_pkgs/generated.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								pkgs/_sources_pkgs/generated.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| # This file was generated by nvfetcher, please do not modify it manually. | ||||
| { fetchgit, fetchurl, fetchFromGitHub, dockerTools }: | ||||
| { | ||||
|   prometheus-fail2ban-exporter = { | ||||
|     pname = "prometheus-fail2ban-exporter"; | ||||
|     version = "v0.10.0"; | ||||
|     src = fetchgit { | ||||
|       url = "https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter"; | ||||
|       rev = "v0.10.0"; | ||||
|       fetchSubmodules = false; | ||||
|       deepClone = false; | ||||
|       leaveDotGit = false; | ||||
|       sha256 = "sha256-8nIW1XaHCBqQCoLkV1ZYE3NTbVZ6c+UOqYD08XQiv+4="; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  | @ -7,6 +7,9 @@ | |||
| in | ||||
|   { | ||||
|     starbound = callPackage ./starbound {}; | ||||
|     prometheus-fail2ban-exporter = callPackage ./prometheus/fail2ban-exporter.nix { | ||||
|       sources = pkgs.callPackage ./_sources_pkgs/generated.nix {}; | ||||
|     }; | ||||
|   } | ||||
|   // ( | ||||
|     # Add nextcloud apps | ||||
|  |  | |||
							
								
								
									
										3
									
								
								pkgs/nvfetcher.toml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								pkgs/nvfetcher.toml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| [prometheus-fail2ban-exporter] | ||||
| src.manual = "v0.10.0" # No gitlab support in nvfetcher | ||||
| fetch.git = "https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter" | ||||
							
								
								
									
										8
									
								
								pkgs/prometheus/fail2ban-exporter.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								pkgs/prometheus/fail2ban-exporter.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| { | ||||
|   buildGoModule, | ||||
|   sources, | ||||
| }: | ||||
| buildGoModule { | ||||
|   inherit (sources.prometheus-fail2ban-exporter) pname src version; | ||||
|   vendorHash = "sha256-qU6opwhhvzbQOhfGVyiVgKhfCSB0Z4eSRAJnv6ht2I0="; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue