mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
prometheus-bitcoin-exporter: init at 0.5.0
This commit is contained in:
parent
596c486e53
commit
dbb07aba88
42
pkgs/servers/monitoring/prometheus/bitcoin-exporter.nix
Normal file
42
pkgs/servers/monitoring/prometheus/bitcoin-exporter.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{ lib, fetchFromGitHub, fetchpatch, python3Packages }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "bitcoin-prometheus-exporter";
|
||||
version = "0.5.0";
|
||||
|
||||
format = "other";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jvstein";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0l0j6dyb0vflh386z3g8srysay5sf47g5rg2f5xrkckv86rjr115";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# remove after update to new release
|
||||
(fetchpatch {
|
||||
name = "configurable-listening-address.patch";
|
||||
url = "https://patch-diff.githubusercontent.com/raw/jvstein/bitcoin-prometheus-exporter/pull/11.patch";
|
||||
sha256 = "0a2l8aqgprc1d5k8yg1gisn6imh9hzg6j0irid3pjvp5i5dcnhyq";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [ prometheus_client bitcoinlib riprova ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp bitcoind-monitor.py $out/bin/
|
||||
|
||||
mkdir -p $out/share/${pname}
|
||||
cp -r dashboard README.md $out/share/${pname}/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Prometheus exporter for Bitcoin Core nodes";
|
||||
homepage = "https://github.com/jvstein/bitcoin-prometheus-exporter";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ mmilata ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -18863,6 +18863,7 @@ in
|
||||
prometheus-aws-s3-exporter = callPackage ../servers/monitoring/prometheus/aws-s3-exporter.nix { };
|
||||
prometheus-bind-exporter = callPackage ../servers/monitoring/prometheus/bind-exporter.nix { };
|
||||
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-collectd-exporter = callPackage ../servers/monitoring/prometheus/collectd-exporter.nix { };
|
||||
prometheus-consul-exporter = callPackage ../servers/monitoring/prometheus/consul-exporter.nix { };
|
||||
|
Loading…
Reference in New Issue
Block a user