feat(octoprint): metrics

This commit is contained in:
arcnmx 2024-07-13 14:08:37 -07:00
parent 1ead7f237e
commit 2c9219ba87
8 changed files with 91 additions and 18 deletions

View 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";
};
}