mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
prometheus-smokeping-prober: init at 0.3.1 from git
This commit is contained in:
parent
75513fb361
commit
2c329d7954
43
pkgs/servers/monitoring/prometheus/smokeping-prober.nix
Normal file
43
pkgs/servers/monitoring/prometheus/smokeping-prober.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
|
||||
|
||||
let
|
||||
inherit (stdenv) lib;
|
||||
baseVersion = "0.3.1";
|
||||
commit = "9ba85274dcc21bf8132cbe3b3dccfcb4aab57d9f";
|
||||
in
|
||||
buildGoModule rec {
|
||||
pname = "smokeping_prober";
|
||||
version = "${baseVersion}-g${commit}";
|
||||
|
||||
buildFlagsArray = let
|
||||
setVars = {
|
||||
Version = baseVersion;
|
||||
Revision = commit;
|
||||
Branch = commit;
|
||||
BuildUser = "nix";
|
||||
};
|
||||
varFlags = lib.concatStringsSep " " (lib.mapAttrsToList (name: value: "-X github.com/prometheus/common/version.${name}=${value}") setVars);
|
||||
in [
|
||||
"-ldflags=${varFlags} -s -w"
|
||||
];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = commit;
|
||||
owner = "SuperQ";
|
||||
repo = "smokeping_prober";
|
||||
sha256 = "sha256:19596di2gzcvlcwiypsncq4zwbyb6d1r6wxsfi59wax3423i7ndg";
|
||||
};
|
||||
vendorSha256 = "sha256:1b2v3v3kn0m7dvjxbs8q0gw6zingksdqhm5g1frx0mymqk0lg889";
|
||||
|
||||
doCheck = true;
|
||||
|
||||
passthru.tests = { inherit (nixosTests.prometheus-exporters) smokeping; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Prometheus exporter for sending continual ICMP/UDP pings";
|
||||
homepage = "https://github.com/SuperQ/smokeping_prober";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ lukegb ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
@ -17673,6 +17673,7 @@ in
|
||||
prometheus-redis-exporter = callPackage ../servers/monitoring/prometheus/redis-exporter.nix { };
|
||||
prometheus-rabbitmq-exporter = callPackage ../servers/monitoring/prometheus/rabbitmq-exporter.nix { };
|
||||
prometheus-rtl_433-exporter = callPackage ../servers/monitoring/prometheus/rtl_433-exporter.nix { };
|
||||
prometheus-smokeping-prober = callPackage ../servers/monitoring/prometheus/smokeping-prober.nix { };
|
||||
prometheus-snmp-exporter = callPackage ../servers/monitoring/prometheus/snmp-exporter.nix { };
|
||||
prometheus-sql-exporter = callPackage ../servers/monitoring/prometheus/sql-exporter.nix { };
|
||||
prometheus-tor-exporter = callPackage ../servers/monitoring/prometheus/tor-exporter.nix { };
|
||||
|
Loading…
Reference in New Issue
Block a user