atlasbot: widen context selection
This commit is contained in:
parent
1eec102e66
commit
f286ebf71a
@ -582,21 +582,36 @@ def _build_context(
|
|||||||
"node_usage_top",
|
"node_usage_top",
|
||||||
"root_disk",
|
"root_disk",
|
||||||
"pvc_usage",
|
"pvc_usage",
|
||||||
"namespace_usage",
|
"namespace_cpu_top",
|
||||||
"namespace_io_net",
|
"namespace_mem_top",
|
||||||
|
"namespace_net_top",
|
||||||
|
"namespace_io_top",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
if _want(("namespace", "quota", "overcommit", "capacity")):
|
if _want(("namespace", "quota", "overcommit", "capacity", "active", "activity")):
|
||||||
prefixes.update({"namespace_capacity", "namespace_capacity_summary", "namespace_usage", "namespace_requests"})
|
prefixes.update(
|
||||||
if _want(("pod", "pending", "crash", "image", "pull", "restart", "fail")):
|
{
|
||||||
prefixes.update({"pod_issues", "pod_restarts", "pod_usage", "pod_events", "events", "event_summary"})
|
"namespace_capacity",
|
||||||
|
"namespace_capacity_summary",
|
||||||
|
"namespace_cpu_top",
|
||||||
|
"namespace_mem_top",
|
||||||
|
"namespace_net_top",
|
||||||
|
"namespace_io_top",
|
||||||
|
"namespace_nodes_top",
|
||||||
|
"namespaces_top",
|
||||||
|
}
|
||||||
|
)
|
||||||
|
if _want(("pod", "pending", "crash", "image", "pull", "fail")):
|
||||||
|
prefixes.update({"pod_issues", "pod_usage", "pod_events", "events", "event_summary", "pods_pending_oldest", "pods_pending_over_15m"})
|
||||||
|
if _want(("restart", "restarts")):
|
||||||
|
prefixes.update({"restarts_1h_top", "restarts_1h_namespace_top", "pod_restarts"})
|
||||||
if _want(("alert", "alerting", "incident", "error")):
|
if _want(("alert", "alerting", "incident", "error")):
|
||||||
prefixes.update({"signals", "events", "event_summary", "pod_issues", "watchlist"})
|
prefixes.update({"signals", "events", "event_summary", "pod_issues", "watchlist"})
|
||||||
if _want(("flux", "reconcile", "gitops")):
|
if _want(("flux", "reconcile", "gitops")):
|
||||||
prefixes.update({"flux"})
|
prefixes.update({"flux"})
|
||||||
if _want(("longhorn", "volume", "pvc", "storage")):
|
if _want(("longhorn", "volume", "pvc", "storage")):
|
||||||
prefixes.update({"longhorn", "pvc_usage", "root_disk"})
|
prefixes.update({"longhorn", "pvc_usage", "root_disk"})
|
||||||
if _want(("workload", "deployment", "stateful", "daemon")):
|
if _want(("workload", "deployment", "stateful", "daemon", "schedule", "heavy")):
|
||||||
prefixes.update({"workloads", "workloads_by_namespace", "workload_health"})
|
prefixes.update({"workloads", "workloads_by_namespace", "workload_health"})
|
||||||
if classify.get("answer_style") == "insightful" or classify.get("question_type") == "open_ended":
|
if classify.get("answer_style") == "insightful" or classify.get("question_type") == "open_ended":
|
||||||
prefixes.update({"signals", "profiles", "watchlist", "hottest"})
|
prefixes.update({"signals", "profiles", "watchlist", "hottest"})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user