25 lines
1.3 KiB
Makefile
25 lines
1.3 KiB
Makefile
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"
|
|
|
|
|