fuuko/fritzbox-exporter: Drop

This commit is contained in:
Simon Bruder 2022-09-30 11:36:14 +02:00
parent 2a5c666631
commit 41da6fe13f
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
4 changed files with 0 additions and 45 deletions

View file

@ -5,7 +5,6 @@
../../modules ../../modules
../../users/simon ../../users/simon
./services/fritzbox-exporter.nix
./services/media-backup.nix ./services/media-backup.nix
./services/media.nix ./services/media.nix
./services/torrent.nix ./services/torrent.nix

View file

@ -1,9 +0,0 @@
{ config, ... }:
{
services.prometheus.exporters.fritzbox = {
enable = true;
gatewayAddress = "192.168.100.1";
listenAddress = config.sbruder.wireguard.home.address;
};
}

View file

@ -80,10 +80,6 @@ in
regex = "(.*)\\.vpn\\.sbruder\\.de:9561"; regex = "(.*)\\.vpn\\.sbruder\\.de:9561";
}; };
} }
{
job_name = "fritzbox";
static_configs = mkStaticTarget "fuuko.vpn.sbruder.de:9133";
}
( (
let let
listenerCfg = (lib.elemAt config.services.matrix-synapse.settings.listeners 0); listenerCfg = (lib.elemAt config.services.matrix-synapse.settings.listeners 0);
@ -156,9 +152,6 @@ in
]; ];
}; };
# get rid of “could not call action: authorization required” every scrape
systemd.services.prometheus-fritzbox-exporter.serviceConfig.StandardOutput = "null";
# exporters that are not part of nixpkgs prometheus infrastructure # exporters that are not part of nixpkgs prometheus infrastructure
services.hcloud_exporter = { services.hcloud_exporter = {
enable = true; enable = true;

View file

@ -1,28 +0,0 @@
{ lib, stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoModule rec {
pname = "fritzbox-exporter";
version = "unstable-2021-03-03";
rev = "6d66f6b8e47878c61feb710e36306fe714350658";
src = fetchFromGitHub {
inherit rev;
owner = "mxschmitt";
repo = "fritzbox_exporter";
sha256 = "0n9fwslcwgfghscrwbz7p3zamb474zk425ijkkh6cixpnc7p3vi6";
};
subPackages = [ "cmd/exporter" ];
vendorSha256 = "0k6bd052pjfg5c1ba1yhni8msv3wl512vfzy2hrk49jibh8h052n";
passthru.tests = { inherit (nixosTests.prometheus-exporters) fritzbox; };
meta = with lib; {
description = "Prometheus Exporter for FRITZ!Box (TR64 and UPnP)";
homepage = "https://github.com/mxschmitt/fritzbox_exporter";
license = licenses.asl20;
maintainers = with maintainers; [ bachp flokli ];
platforms = platforms.unix;
};
}