Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added filter on alert by label (#45)
Example run ``` kubectl apply -f https://raw.githubusercontent.com/robusta-dev/kubernetes-demos/main/pending_pods/pending_pod_node_selector.yaml # wait till alert fires... poetry run python3 /Users/avirobusta/git/holmesgpt/holmes.py investigate alertmanager --alertmanager-url=http://localhost:9093/ --alert-label-key=pod --alert-label-value=user-profile-import Configuration file exists at /Users/avirobusta/Library/Preferences/pypoetry, reusing this directory. Consider moving TOML configuration files to /Users/avirobusta/Library/Application Support/pypoetry, as support for the legacy directory will be removed in an upcoming release. Analyzing all 1 issues. (Use --alertmanager-alertname to filter.) Press Ctrl+C to stop. Analyzing issue 1/1: KubePodNotReady... No runbooks found for this issue. Using default behaviour. (Add runbooks to guide the investigation.) Running `kubectl describe Pod user-profile-import -n default` tools.py:89 ──────────────────────────────────────────────────────── AI: Node Affinity Mismatch Resource: Pod user-profile-import Details: Pod user-profile-import is pending because 0/3 nodes match its node affinity/selector criteria. ──────────────────────────────────────────────────────── ```
- Loading branch information