docs(dashboard): note why the metrics panels refresh on an interval

The console rule against refetchInterval assumes a watch is available,
which holds for Kubernetes lists but not for the proxy's Prometheus
query API. Record the exception so the metrics panels' refresh does
not read as a rule violation.

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
This commit is contained in:
ZverGuy committed 2026-11-05 00:18:47 +07:00
1 parent 7d43c3bcd6
commit 601c9ece3f
1 file changed
+1
@@ -81,6 +81,7 @@ the apiserver checks that user's RBAC.
to a chunked-encoding WATCH against the same `resourceVersion`. Don't
poll. Don't add `refetchInterval`. If you need a one-shot, pass
`{ watch: false }`.
The one exception is the metrics panels in `components/observability`: the observability proxy serves the Prometheus query API, which has no watch, so they refresh on a fixed interval instead. Log lines stream through the tail endpoint and are not polled.
4. **Tenant scoping.** Most resources live in `tenant-<name>` namespaces.
Pull the active tenant from `useTenantContext()` — never read the
namespace from a URL param or guess it.