added some debug scripts
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user