From 99c357915697b9d800523b2252850c758e2aae1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 8 Jan 2023 11:08:52 +0100 Subject: nixos/monitoring: expand monitoring --- tools/influxdb-monitoring.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/influxdb-monitoring.sh b/tools/influxdb-monitoring.sh index 6488d4f..f83f792 100755 --- a/tools/influxdb-monitoring.sh +++ b/tools/influxdb-monitoring.sh @@ -3,11 +3,15 @@ # telemetries. set -eu +if ! command -v influx jq pass; then + exec nix shell 'nixpkgs#influxdb2' 'nixpkgs#jq' 'nixpkgs#pass' -c "$0" "$@" +fi + cd "${0%/*}/.." influx_args=( # Warning: you might want to modify this when you move the InfluxDB host - "--host" "http://ridcully:8086" + "--host" "http://errol:8086" "--token" "$(pass 'nixos-secrets/influxdb/token/cynerd')" ) -- cgit v1.2.3