prometheus-rasdaemon-exporter: normalize metric names

This commit is contained in:
Martin Weinelt
2024-12-31 00:31:04 +01:00
parent 75cdbb778e
commit 009423e259

View File

@@ -2,6 +2,7 @@
lib,
python3Packages,
fetchFromGitHub,
fetchpatch2,
}:
python3Packages.buildPythonApplication {
@@ -16,6 +17,19 @@ python3Packages.buildPythonApplication {
hash = "sha256-O0Zzog+5jDixFRGbqmjPYi6JDpHbxpU4hKfsqTnexS8=";
};
patches = [
# Normalization of metric names
# https://github.com/sanecz/prometheus-rasdaemon-exporter/pull/1
(fetchpatch2 {
url = "https://github.com/sanecz/prometheus-rasdaemon-exporter/commit/46d379ba205c2340a0b266bf3cd48ec88ce025d0.patch";
hash = "sha256-kqo1Tjn51M1FzArS4K0ylQ2/rFDOAiZU3OUt/oBhGhM=";
})
(fetchpatch2 {
url = "https://github.com/sanecz/prometheus-rasdaemon-exporter/commit/c9ab08e8918497edb8f1ab0f933fa270cb7860a8.patch";
hash = "sha256-QtjzXuxPG7e+cgUDVbAVNY4VyBp3W5+vQDAvFJ9t92I=";
})
];
build-system = with python3Packages; [
setuptools
setuptools-scm