mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(octoprint): metrics
This commit is contained in:
parent
1ead7f237e
commit
2c9219ba87
8 changed files with 91 additions and 18 deletions
24
packages/octoprint/prometheus-exporter.nix
Normal file
24
packages/octoprint/prometheus-exporter.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ buildPlugin
|
||||
, python3Packages
|
||||
, fetchFromGitHub
|
||||
}: let
|
||||
version = "0.2.3";
|
||||
in buildPlugin {
|
||||
pname = "OctoPrint-Prometheus-Exporter";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tg44";
|
||||
repo = "OctoPrint-Prometheus-Exporter";
|
||||
rev = version;
|
||||
sha256 = "sha256-pw5JKMWQNAkFkUADR2ue6R4FOmFIeapw2k5FLqJ6NQg=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
prometheus-client
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/tg44/OctoPrint-Prometheus-Exporter";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue