Difference between revisions of "Monitoring Operators"
Jump to navigation
Jump to search
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | kubectl api-resources --verbs=list --namespaced -o name | grep -E "grafana|prometheus|coreos|opentelemetry|monitoring" | [[while read]] crd; do output=$(kubectl get $crd -A --ignore-not-found 2>/dev/null); if [ -n "$output" ]; then | + | [[kubectl api-resources]] --verbs=list --namespaced -o name | grep -E "grafana|prometheus|coreos|opentelemetry|monitoring" | |
| − | + | [[while read]] crd; do | |
| − | + | output=$(kubectl get $crd -A --ignore-not-found 2>/dev/null); | |
| − | + | if [ -n "$output" ]; then | |
| + | echo "=== $crd ==="; | ||
| + | echo "$output["; | ||
| + | echo ""; | ||
| + | fi; | ||
| + | done | ||
Latest revision as of 19:24, 4 May 2026
kubectl api-resources --verbs=list --namespaced -o name | grep -E "grafana|prometheus|coreos|opentelemetry|monitoring" | while read crd; do output=$(kubectl get $crd -A --ignore-not-found 2>/dev/null); if [ -n "$output" ]; then echo "=== $crd ==="; echo "$output["; echo ""; fi; done
See also[edit]
Advertising: