about summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-09-04 14:32:13 +0200
committerGitHub <noreply@github.com>2022-09-04 14:32:13 +0200
commit2f54aad5e67454db9d130b876e6ce53f991c42ee (patch)
tree980b2e0ced856e79176a1c921e96036dce12870a /pkgs/servers
parent16c8c9900fbcbbc4ccfc4c86b48f39257a2ff12b (diff)
parentd8bb7ec120d2472caf84785cc5271ed899a67517 (diff)
Merge pull request #156813 from JQ-Networks/master
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/monitoring/prometheus/v2ray-exporter.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/prometheus/v2ray-exporter.nix b/pkgs/servers/monitoring/prometheus/v2ray-exporter.nix
new file mode 100644
index 0000000000000..c8732e85315f2
--- /dev/null
+++ b/pkgs/servers/monitoring/prometheus/v2ray-exporter.nix
@@ -0,0 +1,22 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "v2ray-exporter";
+  version = "0.6.0";
+
+  src = fetchFromGitHub {
+    owner = "wi1dcard";
+    repo = "v2ray-exporter";
+    rev = "v${version}";
+    sha256 = "12mzng3cw24fyyh8zjfi26gh853k5blzg3zbxcccnv5lryh2r0yi";
+  };
+
+  vendorSha256 = "sha256-+jrD+QatTrMaAdbxy5mpCm8lF37XDIy1GFyEiUibA2k=";
+
+  meta = with lib; {
+    description = "Prometheus exporter for V2Ray daemon";
+    homepage = "https://github.com/wi1dcard/v2ray-exporter";
+    license = licenses.mit;
+    maintainers = with maintainers; [ jqqqqqqqqqq ];
+  };
+}