2023-08-28 19:52:26 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2021-04-24 06:58:47 +00:00
|
|
|
|
2023-08-28 19:52:26 +00:00
|
|
|
let
|
|
|
|
version = "0.4.4";
|
|
|
|
in
|
|
|
|
buildGoModule {
|
|
|
|
pname = "unbound_exporter";
|
|
|
|
inherit version;
|
2021-04-24 06:58:47 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-08-28 19:52:26 +00:00
|
|
|
owner = "letsencrypt";
|
|
|
|
repo = "unbound_exporter";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-0eo56z5b+hzKCY5OKg/9F7rjLyoSKPJoHLoXeMjCuFU=";
|
2021-04-24 06:58:47 +00:00
|
|
|
};
|
|
|
|
|
2023-08-28 19:52:26 +00:00
|
|
|
vendorHash = "sha256-4aWuf9UTPQseEwDJfWIcQW4uGMffRnWlHhiu0yMz4vk=";
|
2021-04-24 06:58:47 +00:00
|
|
|
|
2021-04-29 04:00:45 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests.prometheus-exporters) unbound;
|
|
|
|
};
|
|
|
|
|
2021-04-24 06:58:47 +00:00
|
|
|
meta = with lib; {
|
2023-08-28 19:52:26 +00:00
|
|
|
changelog = "https://github.com/letsencrypt/unbound_exporter/releases/tag/v${version}";
|
2021-04-24 06:58:47 +00:00
|
|
|
description = "Prometheus exporter for Unbound DNS resolver";
|
2023-08-28 19:52:26 +00:00
|
|
|
homepage = "https://github.com/letsencrypt/unbound_exporter/tree/main";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
2021-04-24 06:58:47 +00:00
|
|
|
};
|
|
|
|
}
|