From ae7299dfe20743780ea72c4b84fde24d18cec1ed Mon Sep 17 00:00:00 2001 From: MasterPtato <23087326+MasterPtato@users.noreply.github.com> Date: Mon, 3 Jun 2024 21:50:40 +0000 Subject: [PATCH] chore: add forwarding script for vector (#836) ## Changes --- docs/infrastructure/vector/ACCESSING.md | 13 +++++++++++++ scripts/forward/vector.sh | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 docs/infrastructure/vector/ACCESSING.md create mode 100755 scripts/forward/vector.sh diff --git a/docs/infrastructure/vector/ACCESSING.md b/docs/infrastructure/vector/ACCESSING.md new file mode 100644 index 0000000000..7cfe30db92 --- /dev/null +++ b/docs/infrastructure/vector/ACCESSING.md @@ -0,0 +1,13 @@ +# Accessing Vector + +To access vector running in the k8s cluster, first forward it and then use the vector cli pointed at the forwarded http url. + +## Forwarding + +`./scripts/forward/vector.sh` + +## Vector CLI + +`nix-shell -p vector` + +`vector top` diff --git a/scripts/forward/vector.sh b/scripts/forward/vector.sh new file mode 100755 index 0000000000..4c96e88cdd --- /dev/null +++ b/scripts/forward/vector.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -euf + +FORWARD_NS=vector FORWARD_NAME=service/vector PORT=8686 FORWARD_PORT=8686 ./scripts/forward/service.sh