added some debug scripts

This commit is contained in:
John Lancaster
2024-12-17 01:09:22 -06:00
parent d0544a89ff
commit 7216a90f90
3 changed files with 15 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
{ config, ... }:
{ config, pkgs, ... }:
let
influxURL = "http://panoptes.john-stream.com:8086";
organization = "homelab";
@@ -8,6 +8,11 @@ in
{
sops.secrets."telegraf_influx_token" = { };
environment.systemPackages = with pkgs; [
(pkgs.writeShellScriptBin "tc" "systemctl status telegraf.service")
(pkgs.writeShellScriptBin "tw" "journalctl -u telegraf.service -b -n 25 -f")
];
systemd.services.telegraf = {
environment = {
INFLUX_WRITE_TOKEN = token;