This commit is contained in:
Waylon S. Walker 2025-05-07 08:09:39 -05:00
commit 0a4b32dffe
12 changed files with 840 additions and 0 deletions

25
justfile Normal file
View file

@ -0,0 +1,25 @@
forward_loki:
kubectl port-forward --namespace meta svc/loki-gateway 3100:80
forward_grafana:
#!/bin/bash
export POD_NAME=$(kubectl get pods --namespace meta -l "app.kubernetes.io/name=grafana,app.kubernetes.io/instance=grafana" -o jsonpath="{.items[0].metadata.name}")
kubectl --namespace meta port-forward $POD_NAME 3000
forward_alloy_logs:
#!/bin/bash
export POD_NAME=$(kubectl get pods --namespace meta -l "app.kubernetes.io/name=alloy-logs,app.kubernetes.io/instance=k8s" -o jsonpath="{.items[0].metadata.name}")
kubectl --namespace meta port-forward $POD_NAME 12345
forward_otel_collector:
#!/bin/bash
export POD_NAME=$(kubectl get pods --namespace meta -l "app.kubernetes.io/name=otel-collector,app.kubernetes.io/instance=k8s" -o jsonpath="{.items[0].metadata.name}")
kubectl --namespace meta port-forward $POD_NAME 4317
get_inotify_max_user_watches:
#!/bin/bashcat /proc/sys/fs/inotify/max_user_watches
export POD_NAME=$(kubectl get pods --namespace meta -l "app.kubernetes.io/name=grafana,app.kubernetes.io/instance=grafana" -o jsonpath="{.items[0].metadata.name}")
# kubectl exec -n <grafana-namespace> <grafana-pod> -- sh -c "ulimit -n && cat /proc/sys/fs/inotify/max_user_watches"
kubectl exec -n meta $POD_NAME -- sh -c "ulimit -n && cat /proc/sys/fs/inotify/max_user_watches"