diff options
author | Martin Fischer <martin@push-f.com> | 2025-03-16 08:41:52 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-03-20 07:30:34 +0100 |
commit | 86322633835cf5970be8bd12c7d57899cbd49d28 (patch) | |
tree | 64a2e9a76a68a1ea1f2f9c282e04de54320c0db4 /nixos/shared/prometheus-sql-exporter/default.nix | |
parent | 85354207b362b6b214f0620d7bd862519dcb4365 (diff) |
feat(tente): monitor database sizes
Diffstat (limited to 'nixos/shared/prometheus-sql-exporter/default.nix')
-rw-r--r-- | nixos/shared/prometheus-sql-exporter/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixos/shared/prometheus-sql-exporter/default.nix b/nixos/shared/prometheus-sql-exporter/default.nix new file mode 100644 index 0000000..81f1660 --- /dev/null +++ b/nixos/shared/prometheus-sql-exporter/default.nix @@ -0,0 +1,26 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "sql_exporter"; + version = "0.17.1"; + + src = fetchFromGitHub { + owner = "burningalchemist"; + repo = pname; + rev = version; + sha256 = "sha256-AEPFXPplHtny1P3gMvB1gbMj10bpu9PXc6ywliF+dCc="; + }; + + vendorHash = "sha256-KFWDqbdbXvgEtz1nlasWrvIckpzasUdzbb+AKfXmYf8="; + + meta = with lib; { + description = "Database-agnostic SQL exporter for Prometheus"; + mainProgram = "sql_exporter"; + homepage = "https://github.com/burningalchemist/sql_exporter"; + license = licenses.mit; + }; +} |