From 73e0ef7fcf7c520f6916ca8184323f611d729537 Mon Sep 17 00:00:00 2001 From: Bruno Bigras Date: Wed, 5 Apr 2023 12:05:09 -0400 Subject: [PATCH] prometheus-cloudflare-exporter: init at 0.0.14 --- .../prometheus/cloudflare-exporter.nix | 23 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 24 insertions(+) create mode 100644 pkgs/servers/monitoring/prometheus/cloudflare-exporter.nix diff --git a/pkgs/servers/monitoring/prometheus/cloudflare-exporter.nix b/pkgs/servers/monitoring/prometheus/cloudflare-exporter.nix new file mode 100644 index 000000000000..860100a6ac47 --- /dev/null +++ b/pkgs/servers/monitoring/prometheus/cloudflare-exporter.nix @@ -0,0 +1,23 @@ +{ buildGoModule, fetchFromGitHub, lib }: + +buildGoModule rec { + pname = "cloudflare-exporter"; + version = "0.0.14"; + + src = fetchFromGitHub { + rev = version; + owner = "lablabs"; + repo = pname; + sha256 = "sha256-A7JnHx9yipTwv63287BqmGrJ3yQ21NhB1z7rrHe6Ok8="; + }; + + vendorSha256 = "sha256-B/+UTkoGAoJLMr+zdXXSC2CWGHx+Iu5E2qp4AA/nmHM="; + + meta = with lib; { + description = "Prometheus Cloudflare Exporter"; + homepage = "https://github.com/lablabs/cloudflare-exporter"; + license = licenses.asl20; + maintainers = with maintainers; [ bbigras ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8b5e0cef8582..53d8f51c0b70 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25651,6 +25651,7 @@ with pkgs; prometheus-bird-exporter = callPackage ../servers/monitoring/prometheus/bird-exporter.nix { }; prometheus-bitcoin-exporter = callPackage ../servers/monitoring/prometheus/bitcoin-exporter.nix { }; prometheus-blackbox-exporter = callPackage ../servers/monitoring/prometheus/blackbox-exporter.nix { }; + prometheus-cloudflare-exporter = callPackage ../servers/monitoring/prometheus/cloudflare-exporter.nix { }; prometheus-collectd-exporter = callPackage ../servers/monitoring/prometheus/collectd-exporter.nix { }; prometheus-consul-exporter = callPackage ../servers/monitoring/prometheus/consul-exporter.nix { }; prometheus-dnsmasq-exporter = callPackage ../servers/monitoring/prometheus/dnsmasq-exporter.nix { };