Observability
The Platform Agent (Hermes) Deployment exports OpenTelemetry traces and two sets of Prometheus metrics, the event watcher’s from its agent-api-auth sidecar and the inbound chat message count from the Hermes container, and the credential-proxy Pod exports the broker’s; LiteLLM and vLLM export both OpenTelemetry traces and Prometheus metrics to GKE Managed telemetry, and the Hindsight memory API exports Prometheus metrics. When the operator sets A2A_CURATOR=true, the OKF memory curator (<name>-curator) also exports Prometheus metrics. Container logs go to Cloud Logging. The Platform Agent’s persona also generates Cloud Console links inline in Chat replies whenever it’s discussing telemetry.
What gets exported
Section titled “What gets exported”Prometheus metrics
Section titled “Prometheus metrics”Every producer below serves a Prometheus endpoint that GKE Managed Prometheus scrapes through a PodMonitoring. Where a row names a switch, the chart renders that PodMonitoring only when the switch says so.
Scrape ports and PodMonitoring toggles
Section titled “Scrape ports and PodMonitoring toggles”| Producer | Listener | PodMonitoring |
Switch |
|---|---|---|---|
| LiteLLM | /metrics on port 8080, answered with a redirect to /metrics/ |
litellm-monitoring, shipped in the LiteLLM integration base (k8s-operator/config/integrations/litellm/base/podmonitoring.yaml) |
litellm.podMonitoring, null by default (renders where the cluster serves the PodMonitoring API; true or false forces it) |
| vLLM | its own /metrics endpoint |
scraped by GKE Managed Prometheus | none |
| Hindsight | the API’s ordinary HTTP port (8888), not a separate metrics listener | hindsight-monitoring (k8s-operator/config/integrations/hindsight/podmonitoring.yaml) |
hindsight.podMonitoring, null by default (same tri-state as litellm.podMonitoring and platformAgent.podMonitoring) |
| Event watcher | port 9095 (container port event-metrics), served by the k8s-event-watcher in the gateway pod’s agent-api-auth sidecar |
<name>-gateway-monitoring, rendered by the chart where the cluster serves the PodMonitoring API |
platformAgent.podMonitoring, null by default, forces it on or off |
| Credential broker | port 8766 (container port cred-metrics), serving unauthenticated /metrics across all profiles plus bearer-authenticated /control/* under sizingProfile: auto in-cluster (404 otherwise), separate from the credentialed port so collectors cannot reach proxy execution routes |
<name>-credential-proxy-monitoring |
the same platformAgent.podMonitoring switch |
| Credential broker exec tier | a metrics-only listener on each exec-tier pod, port 8766 (container port cred-metrics) |
<name>-credential-proxy-exec-tier-monitoring |
the same switch, while platformAgent.deployment.credentialProxy.exec.replicas is above 0 |
| A2A gateway | a metrics-only listener, port 9096 (container port a2a-metrics), separate from the doors’ ports; it also answers the kubelet’s /readyz |
<name>-a2a-gateway-monitoring |
the same switch |
| Teams inbound receiver | a status listener, port 9094 (container port status), separate from the public port Bot Framework posts to; it also answers the kubelet’s probes |
<name>-teams-inbound-monitoring |
the same switch, rendered only while spec.integration.teams.inbound is enabled |
| A2A bus | port 7777 (container port nats-metrics), a prometheus-nats-exporter sidecar in each NATS pod that reads the server’s monitor port over loopback; JetStream stream, account and server storage, and server basics |
<name>-a2a-nats-monitoring, which drops the per-consumer series |
the same switch |
| OKF memory curator | port 8080 (container port status), plain HTTP on <name>-curator when the operator sets A2A_CURATOR=true |
<name>-curator-monitoring (matches no pod while A2A_CURATOR is off) |
the same switch |
Hermes chat_metrics plugin |
/metrics on port 9097 (container port chat-metrics), the one endpoint the Platform Agent (Hermes) container serves itself |
<name>-gateway-chat-monitoring, which selects the pod carrying kubeagents.io/is-leader: "true" |
the same platformAgent.podMonitoring switch |
| Operator | port 8080 (container port metrics), plain HTTP on the pod network, on the operator’s leader pod |
<release>-operator-monitoring |
operator.metrics.podMonitoring, the same tri-state; operator.metrics.enabled: false closes the listener and renders neither the port, the scrape nor the policy |
The operator’s gateway NetworkPolicy admits the managed collector and the operator’s own pods on the event watcher’s port. When A2A_CURATOR=true renders <name>-curator, <name>-curator-netpol admits the collector namespace on port 8080. The chart’s <release>-operator-netpol admits the collector’s namespace on the operator’s port and nothing else. The chat plugin’s leader selector matters above one replica: only the leader runs Hermes and has the port, and at one replica the operator puts the label on the one pod.
What the inference and memory stack exports
Section titled “What the inference and memory stack exports”- LiteLLM: request latency, per-model token counts, error rates, spend (
litellm_spend_metric, for a model LiteLLM’s cost map prices) and, with a spend ceiling set, each gateway pod’s remaining share aslitellm_provider_remaining_budget_metric{api_provider}(Setting a spend ceiling). - vLLM: per-request latency histograms, queue depth, and GPU/KV-cache stats when running local models on GPU node pools.
- Hindsight, the Planning Agent’s memory store: retrieval and reranking latency (
hindsight_operation_duration_seconds), HTTP request counts and durations, database pool wait times, and the token spend of its own extraction and consolidation calls (hindsight_llm_*, which bill through LiteLLM). Recall latency is dominated by the reranker, sohindsight_operation_duration_secondsis the signal to watch;docs/designs/memory.mdsays why. The Postgres StatefulSet exports nothing; thepgvector/pgvectorimage ships no exporter.
OKF memory curator series
Section titled “OKF memory curator series”| Series | Labels | What it counts |
|---|---|---|
kubeagents_curator_outcomes_total |
kind, status |
Outcome events processed by the Curator. kind is proposed, approved, modified-merged, resolved-merged, pr-merged-persists, refused, retired, or other. status is processed, duplicate, ignored, or error. |
kubeagents_curator_records |
type, status |
Current OKF records in the Curator store by type (decision, lesson) and status (proposed, active, rejected, superseded, retired). |
kubeagents_curator_graduations_total |
Recurring cluster lessons graduated into fleet-wide decision proposals. | |
kubeagents_curator_queries_total |
status |
Recall queries answered by the Curator (hit, empty, or error). Administrative RPC actions do not increment this counter. |
process_start_time_seconds |
Captured once at Curator process start. |
Event watcher series
Section titled “Event watcher series”Per watched cluster: events seen, filtered, injected, deduplicated and folded into a workload’s open incident, what became of the keys the settle period held and the quiet follow-ups sent, inject errors, session creates (and those the cooldown breaker held), triage sessions opened (k8s_event_watcher_triage_sessions_total, the creates whose event was delivered), active incidents, relists after the initial sync (k8s_event_watcher_relists_total, each a full re-read of that cluster’s Event backlog, as a paged list or a new watch-list stream), and k8s_event_watcher_cluster_up, the one series that says events are flowing from that cluster.
Beside those, kubeagents_data_volume_bytes{kind}, the agent’s data volume’s size (total) and the space left to the agent’s own user (free), read with statfs at each scrape. The listener also serves process_start_time_seconds, a gauge captured once at process start rather than re-derived per scrape, which the operator reads to tell a restart from a counter that fell. It also serves k8s_event_watcher_watch_set_ready: 0 while building its initial watch set, 1 once every initial k8s_event_watcher_cluster_up series is published.
Beside the per-cluster series, fleet gauges with no cluster label, refreshed every five minutes: k8s_event_watcher_fleet_nodes, k8s_event_watcher_fleet_max_cluster_nodes, k8s_event_watcher_fleet_controllers (Deployments, StatefulSets, DaemonSets and CronJobs), k8s_event_watcher_fleet_pods and k8s_event_watcher_fleet_max_cluster_pods, with k8s_event_watcher_fleet_shape_clusters{outcome} saying how many clusters the totals hold (counted) and leave out (failed). A failed count above zero means the totals are partial. The README linked below says how the reading is made.
In Cloud Monitoring the collector’s own cluster and location labels take precedence, so the watcher’s arrive as exported_cluster and exported_location. The watcher’s README says which series to alert on and how.
Credential broker series
Section titled “Credential broker series”| Series | Labels | What it counts |
|---|---|---|
kubeagents_tool_invocations_total |
tool, subcommand, status |
Every command the sandbox’s wrappers send to the broker’s exec route. status is success (exit 0), error (a non-zero exit, a rejected request, or a broker fault), blocked (a policy refusal, or a session’s tool-call ceiling or loop breaker), busy (the broker’s command slots, its child memory budget or a class share held the command for the whole wait, so it never started) or abandoned (the caller hung up while its command was queued or running; a running one was killed). |
kubeagents_tool_execution_duration_seconds |
tool, class |
A histogram from 50ms to 60s over the commands that ran. class is background for the profile workers’ and the scope publisher’s commands and interactive for every other caller’s. |
kubeagents_credential_proxy_requests_total |
endpoint, status_code |
The credentialed listener’s traffic by route family. |
kubeagents_credential_proxy_admission_wait_seconds |
bound, class |
The admission queue the child memory budget creates: a histogram from 100ms to the broker’s 60s refusal bound over every admission (the 15s edge is the cap the Cluster Agent preflight puts on one brokered call). bound is slot or budget for what held a request that waited (with the budget on, a wait the slot cap never touched counts as budget) and none for a request admitted at once. background is a background request the background share held. slot also counts an interactive request the interactive cap held. An idle broker’s observations are all none: a measured zero that blames neither bound, and a label that does not change with the memory limit. |
kubeagents_credential_proxy_admission_refusals_total |
bound, class |
The requests answered busy, by the bound that refused them: slot, budget, refresh-lock for a forge refresh that waited out the refresh lock, session for the session role’s own limit, and other for a bound the broker did not name. profile counts the profile role’s own limit, scope the scope publisher’s, and draining a new request while a stopping broker drains. background counts a background request the background share held for the whole wait. slot also counts an interactive request the interactive cap held. A forge refresh that stepped aside for a vcs verb and was told busy counts under budget, which is what held it. pressure counts the 429 answers of the resource watermark gate, refused before the queue. |
kubeagents_credential_proxy_slots_in_use, kubeagents_credential_proxy_slot_cap |
The command slots in use, and the cap. | |
kubeagents_credential_proxy_child_memory_reserved_bytes, kubeagents_credential_proxy_child_memory_budget_bytes |
The child memory budget’s reservation and size. The budget gauge is absent while the budget is off (a limit under its floor, or none), which is the sign to look for on an install whose proxy never queues and never refuses. | |
kubeagents_credential_proxy_cgroup_memory_bytes |
kind |
The proxy container’s memory as its cgroup accounts it: current, peak (the high-water since the container started), limit, and the anon and file (page cache) parts of the usage. A kind whose file the broker cannot read is absent. |
kubeagents_credential_proxy_cgroup_memory_events_total |
event |
The cgroup’s memory.events counters: max is the times usage reached the limit and the kernel reclaimed to stay under it, oom_kill the kills. A kill restarts the container and the next container’s counters start at zero, so the kill itself is read from the pod’s lastState; this series is the pressure before it. |
kubeagents_credential_proxy_process_memory_bytes |
process, kind |
The broker process’s and envoy’s resident set (rss) and high-water (peak). |
kubeagents_credential_proxy_child_peak_rss_bytes |
tool |
The largest resident set a child process of the broker reached since it started, by the tool that set it (the invocations counter’s closed set, other, or bootstrap for the startup command’s own tree). The tree under a request counts: a kubectl’s auth plugin is attributed to kubectl. |
kubeagents_credential_proxy_resource_watermark_ratio |
resource |
memory is the container’s working set (usage less inactive file cache) against its cgroup limit. state and tmp are each scratch volume against its cap, CREDENTIAL_PROXY_STATE_LIMIT_BYTES or CREDENTIAL_PROXY_TMP_LIMIT_BYTES. A resource the gate cannot read is absent: memory without a cgroup limit, a volume without a cap. |
kubeagents_credential_proxy_profile_gate_info |
generation |
1 for the profile identity map the profile role is bound to, when the broker reads it from CREDENTIAL_PROXY_PROFILE_IDENTITIES_FILE. The label is the hex SHA-256 of the file as last loaded. It is empty before any map has loaded, and unconfigured when the profile audience is unset or equal to another role’s. Absent when the map comes from the environment. |
kubeagents_credential_proxy_profile_gate_reload_failures_total |
Changes to that file that could not be loaded, so the broker kept the map it ran with; counted once per distinct failure. Absent when the map comes from the environment. | |
kubeagents_vcs_requests_total |
verb, status, provider |
The version-control route by verb (the route table’s vocabulary, or other), the same outcome words as the tool counter, and the forge the request resolved to: one of the forges this image ships (the forge registry’s AVAILABLE set); none when the route resolved no built forge (every capabilities request, a host this install serves no forge for, any verb refused, failed or abandoned ahead of the managed-repository resolve, and a snapshot of a bare owner/name read from github.com on an install with no GitHub forge); other, the fold for a name outside that set, does not occur on a stock image. |
kubeagents_vcs_proposals |
state |
The install’s own proposals in its managed repositories, as the forge reports now: open, merged, or closed without a merge. A reading the broker’s sweep takes every 240 seconds, not a counter. |
kubeagents_vcs_proposals_closed_by |
actor |
The closed proposals by who closed them: install, human or bot. |
kubeagents_vcs_proposal_touches |
kind, actor |
Reviews, comments, commits and /agent addresses on the install’s proposals by any other account, summed over every proposal. actor is bot when the forge marks the account as automation, human otherwise. |
kubeagents_vcs_proposal_touches_per_proposal |
outcome, le |
The merged and closed proposals by how many human touches each carried, cumulative over le. le="0" under outcome="merged" is the proposals merged with no human touch. |
kubeagents_vcs_proposals_ignored |
Open proposals older than fourteen days with no human touch. | |
kubeagents_vcs_stockout_proposals |
state |
Stockout-investigator proposals authored by the install in its managed repositories, by state (open, merged, or closed without a merge). Part of the details reading. |
kubeagents_vcs_readings_age_seconds |
reading |
Seconds since the outcomes reading (the proposals by state) or the details reading (everything else above) was last taken in full. The value series of a reading more than an hour old are omitted; this one stays. |
kubeagents_vcs_readings_failures_total |
reason |
Repository reads in a sweep that produced less than a full reading, by cause: forge, identity, truncated, detail_truncated, rate_limited, warming or quota_floor (per-proposal reads stopped because the forge reported its request quota nearly spent). A repository records each cause it produced in a sweep. |
kubeagents_vcs_forge_connected |
provider |
A gauge: 1 when every managed repository on the provider’s forges answered the last sweep, 0 when one did not. Forge connection says what it covers. |
kubeagents_vcs_forge_repositories |
provider, state |
A gauge: the managed repositories on the provider’s forges by how the last sweep left each one’s connection. |
kubeagents_vcs_forge_checked_age_seconds |
provider |
Seconds since the sweep last attempted a managed repository of the provider. |
kubeagents_credential_proxy_decision_memory_checks_total |
verdict |
Stage B OKF decision-memory guard checks evaluated on /v1/vcs/publish for repositories that hold knowledge/ or .kube-agents/intent.yaml: allow, warn, block, or error. |
kubeagents_broker_execution_failures_total |
kind, tool |
The work the broker took on and could not carry out. tool is the tool a timed-out command ran (the invocations counter’s closed set) and none for every other kind; kind is one of the values in the next table. Never the broker’s own busy 503, never a command’s own exit code, never a request method the broker does not serve, and never a chat or Slack post the forge refused for the caller’s channel or scope. |
process_start_time_seconds |
Captured once at process start, which the operator reads for the same reason as the watcher’s. |
Forge connection
Section titled “Forge connection”The three kubeagents_vcs_forge_ series say which forge the install’s managed repositories live on, and whether the broker can read them. The broker’s readings sweep attempts each managed repository every 240 seconds, the GitOps repository among them. These series are the result of that attempt, by provider.
providernames the forge:github,gitlabor another forge this image ships. A managed repository that names no such forge counts underother. The series appear after the first sweep, before the agent has made any request.- The series carry no host. Two hosts of one provider, such as gitlab.com and a self-managed GitLab, are counted together.
kubeagents_vcs_forge_connectedis1only when every managed repository of the provider answered.kubeagents_vcs_forge_repositoriescounts those repositories bystate:
state |
The last attempt on the repository |
|---|---|
ok |
The forge answered the listing of the install’s pull requests. |
unauthorized |
The forge refused the credential or the read, or no credential could be had for the repository. On GitHub, a repository that does not exist, or that the App installation does not include, is in this state. |
not_found |
The forge has no such repository for this credential. |
unreachable |
The forge did not answer: a network or TLS fault, a timeout or a server error. |
rate_limited |
The forge refused a read for its request quota. |
identity |
The credential cannot say which account it is. Such a repository is not attempted again until the broker restarts. |
other |
Any other failure, such as a host that no configured forge serves. |
The state comes from the first reads of each attempt: the credential, the account and the listing. A later read of one pull request that fails does not change it, except a refusal for the request quota.
The connected and repository series are omitted once the sweep’s last report is more than an hour old. The age series stay, so a sweep that stopped shows as stale. A provider whose repositories are all in the identity state is not attempted again. It stays at 0 while the sweep reports, and its age grows from the time they were found.
Two limits apply. A forge with no managed repository, such as one that holds only context repositories, is not attempted and has no series. The attempt reads the repository; it does not prove that the credential can write to it.
The operator reads these series on its usage poll and sets the ForgeConnected condition on the PlatformAgent from them. The condition does not change Ready. The CRD reference lists its reasons.
The kind label of kubeagents_broker_execution_failures_total:
kind |
Counted |
|---|---|
exec_timeout |
a command past its deadline |
exec_failed |
a 500 on the exec route |
vcs_failed |
a 500 or 502 on the version-control route, and its 503 for an unreadable managed-repository list |
forge_refresh_failed |
a 502 on the forge route |
api_relay_failed |
any 5xx on the Cloud API, MCP or watcher relays, whose upstream status passes through |
chat_pull_failed |
the broker’s own chat event pull failing on any chat platform’s route (its Pub/Sub subscription, or the in-pod Slack or Teams queue) |
other_failed |
a 500, 502 or 504 on any other route |
Read the two admission series by bound. A median wait in the tens of seconds, or refusals, under budget is the broker telling you to raise the proxy’s memory limit (spec.deployment.credentialProxy.resources, or a spec.deployment.sizingProfile row that raises it). The same under slot means CREDENTIAL_PROXY_MAX_CONCURRENT_COMMANDS binds (8 on default and fixed profiles; 8 small, 12 medium, 16 fleet under sizingProfile: auto): narrow concurrent listings, or switch to sizingProfile: auto. Raising limits.memory alone leaves the slot cap unchanged. At 2Gi, the memory budget admits ten, so slot binds first (design).
The memory series are the measurement behind that advice. kubeagents_credential_proxy_cgroup_memory_bytes{kind="peak"} against kind="limit" says how close the container has come to a kill since it started; kubeagents_credential_proxy_cgroup_memory_events_total{event="max"} counts the times it reached the limit. kubeagents_credential_proxy_child_peak_rss_bytes by tool is the largest child of that tool the broker has reaped, from the child’s own rusage. The budget charges each request 128 MiB for its child (176 MiB with the output allowance), a listing of a small cluster. A kubectl figure well above that is what to size the limit from; Credential isolation gives the rule under the restarting-container entry. The broker logs the same figures as memory at start, memory high-water and memory limit reached lines, so a killed container leaves the record in its previous log.
The git the broker runs itself for its version-control routes is not a tool invocation and is not counted here. Every label value is a static enum or a word from a closed vocabulary: for kubectl the policy’s read verbs plus the write verbs a refusal is counted under, for gcloud the command groups the policy reads plus the few a refusal is counted under (a gcloud command is labelled by its group, container or iam, never by a verb), for git and gh the broker’s own lists. So nothing a caller sends reaches a series: an unlisted verb or an unserved executable counts under other.
The proposal readings take as long as the forge allows. The sweep sends GitHub’s search API at most 25 calls a minute, under the 30 it serves, and reads each proposal’s events within 1000 forge calls an hour. On an install whose GitHub repositories need more searches than that per sweep, a sweep takes longer than 240 seconds and kubeagents_vcs_readings_age_seconds grows with it. Each reading is still whole or absent: a slower sweep does not change what it counts.
The per-proposal reads also stop, until the quota resets, while the forge reports the remaining quota at or under 300 calls or a tenth of its limit, whichever is larger. The floor is never more than half the limit, and a pause lasts at most an hour. On GitHub each repository owner’s App installation has its own quota, so one owner’s spent quota stops only that owner’s reads; on GitLab the quota covers the whole host.
A2A gateway series
Section titled “A2A gateway series”| Series | Labels | What it counts |
|---|---|---|
kubeagents_a2a_gateway_messages_inbound_total |
platform |
Each chat message the gateway accepted as a turn, counted before the sender is verified, by googlechat, slack, teams, discord, console or other (a door’s turns are not chat and are not counted). The operator reads it into status.usage.chatMessagesInboundTotal beside the plugin’s series. |
kubeagents_a2a_gateway_sessions_total |
platform |
Each conversation the gateway opened a session for, counted once under the platform of its first message. The operator reads it into status.usage.sessionsTotal. |
kubeagents_a2a_gateway_task_terminals_total |
state, source |
Each task terminal the gateway delivers to a conversation. state is completed, failed, canceled or rejected; source is executor (the executor’s own account), supervisor (the gateway’s word about an executor that died or never ran), gateway (the task never reached the bus, so a NATS outage shows here) or gateway-never-started (no executor took the task inside A2A_FIRST_EVENT_GRACE). |
kubeagents_a2a_gateway_gchat_events_received_total |
The Google Chat events pulled from the broker’s relay. | |
kubeagents_a2a_gateway_gchat_pulls_total |
outcome |
The relay pulls by events, empty or failed, so a Chat install that receives nothing shows empty rising rather than looking healthy. |
kubeagents_a2a_gateway_gchat_api_request_duration_seconds |
method, outcome |
A histogram, on Google Chat, of each Chat API call the gateway made through the broker’s relay. method is the API method (spaces.messages.create, spaces.messages.patch, spaces.messages.get, spaces.members.list, spaces.findDirectMessage, spaces.setup, or other); outcome is ok, rate_limited (a 429 from the Chat API) or error (any other status, or no response). The broker retries a rate-limited or failed call before it answers, so the time includes any retries. No sample until the first call. Waiting for events is not a Chat API call and is not timed. |
kubeagents_a2a_gateway_gchat_api_rate_limited_total |
method |
Each Chat API call refused with a 429 rate limit after the broker’s own retries, by the same method. No sample until the first 429. A rising count means the gateway is posting or editing faster than the Chat API’s quota allows. |
kubeagents_a2a_gateway_teams_events_received_total |
The Microsoft Teams activities pulled from the broker’s Teams queue. | |
kubeagents_a2a_gateway_teams_pulls_total |
outcome |
The queue pulls by events, empty or failed, while the gateway serves Teams, so a Teams install that receives nothing shows empty rising rather than looking healthy. On an install that serves Teams through Hermes, the Teams series stay at zero or absent. |
kubeagents_a2a_gateway_teams_api_request_duration_seconds |
method, outcome |
A histogram, on Teams, of each Bot Framework call the gateway made through the broker. method is the operation (conversations.activities.create, conversations.activities.update, conversations.activities.reactions.add and .remove for the marks on your message, conversations.create, conversations.members.list, conversations.members.get, or other, which includes the typing indicator’s posts). outcome is ok, rate_limited (a 429 from Microsoft) or error (any other status, or no response). No sample until the first call. |
kubeagents_a2a_gateway_teams_api_rate_limited_total |
method |
Each Bot Framework call Microsoft refused with a 429 rate limit, by the same method; a 429 on the sign-in token the call needed counts too. No sample until the first 429. |
kubeagents_a2a_gateway_teams_ingress_lag_seconds |
A histogram, on Teams, of how long each message the gateway takes as a turn took to reach it: the gateway’s receipt less the activity’s own timestamp. It spans Microsoft’s delivery, whatever forwards the activity into the broker’s Teams queue, and the queue’s wait, apart from the agent’s own time. | |
kubeagents_a2a_gateway_chat_messages_total |
outcome |
The structured chat messages (a report, a question, a plan) the agent sent beside its text, counted each time one is posted or edited in: rendered (laid out, on Slack, Google Chat or Microsoft Teams with cards on), text_only (a backend that shows text only posted the text), refused (the chat platform could not take it and the text posted instead) or invalid (it broke a rule and was dropped, so the text posted instead, or only its reaction state was bad and was dropped). A rising refused or invalid usually means structured messages are reaching the chat platform as plain text. |
kubeagents_a2a_gateway_notify_marks_dropped_total |
The reaction updates from the board’s cards that the gateway dropped because it could not tell which of your messages they belonged to while the agent was working on another, each one a reaction that may be left stale. | |
kubeagents_a2a_gateway_answer_feedback_total |
platform, rating, answer |
Each 👍 (up) or 👎 (down) someone the gateway answers gave one of its answers (answer feedback), one count per rating change: tapping the same rating again adds nothing, and a flip counts the new rating. answer says what was rated: reply, the agent’s own answer, or card, the report of a background card that settled the question (other when the gateway no longer holds the conversation’s record). The operator reads down into status.usage.negativeFeedbackTotal and up into positiveFeedbackTotal. |
kubeagents_a2a_gateway_post_feedback_total |
platform, rating, kind |
Each 👍 (up) or 👎 (down) someone gave a post the agent made on its own rather than in answer to them, one count per rating change as for answers. kind is alert or report (a scheduled or audit report), other otherwise. Counted apart from the answer ratings, so a 👎 on a noisy alert reads as noise rather than a bad answer. |
kubeagents_a2a_gateway_people_seen |
window |
The distinct people whose last verified turn on Google Chat, Slack, Discord or, where the gateway serves it, Microsoft Teams falls inside the window, 7d or 30d, read from the gateway’s people record. The doors and the console are not people. No sample while the gateway is loading the record or rebuilding it, none while spec.telemetry.peopleSeen is false, and none when the install’s NATS server has no people bucket or one without a max age. |
kubeagents_a2a_gateway_slack_connected |
On Slack, 1 while the gateway’s Socket Mode connection to Slack is up, and 0 once the connection is found dropped or starts reconnecting, until it is up again. A silent drop is found when Slack’s pings stop, within about 30 seconds. Only the replica holding the connection serves it: a standby replica, and a gateway on another backend, serve no sample. The operator reads it into the SlackConnected condition. |
|
kubeagents_a2a_gateway_slack_last_event_timestamp_seconds |
On Slack, when the gateway last received a message, event or button click from Slack, in Unix seconds. No sample until the first, and none on a standby replica. | |
kubeagents_a2a_gateway_slack_ingress_lag_seconds |
A histogram, on Slack, of how long each message the gateway takes as a turn, and each button click, took to reach the gateway: the time it arrived less the event’s own Slack timestamp (a message’s event_ts, a click’s action_ts). It shows the Slack-to-gateway leg apart from the agent’s own time. A negative lag (clock skew) reads as 0; a node clock running ahead of Slack’s inflates it. |
|
kubeagents_a2a_gateway_slack_first_ack_seconds |
A histogram, on Slack, of how long an ask waited for its first receipt: from the gateway receiving the message to its arrival reaction landing. A click, an answer and a steer draw none and are not counted, nor is a reaction Slack refused. With the ingress lag before it, it is the wait before a person sees the reaction. | |
kubeagents_a2a_gateway_slack_api_request_duration_seconds |
method, outcome |
A histogram of each Slack Web API call the gateway made. method is the API method (chat.postMessage, chat.update, reactions.add, views.publish, agents.sessions.setStatus and the rest the gateway uses, or other); outcome is ok (a 2xx, including Slack’s ok: false answers), rate_limited (a 429) or error (any other status, or no response). |
kubeagents_a2a_gateway_slack_api_rate_limited_total |
method |
Each Slack Web API call Slack refused with a 429 rate limit, by the same method. A rising count means the gateway is posting or editing faster than Slack’s tier allows. |
kubeagents_a2a_gateway_profile_supervisor_cutoff_timestamp_seconds |
source |
The profile supervisor cutoff the gateway runs with, in Unix seconds, and 0 when there is none. source is env (the operator’s value), malformed (a value that did not parse, which the gateway reads as the Unix epoch, so it refuses every old-form terminal on a profile task) or unset. |
kubeagents_a2a_gateway_profile_names_loaded |
1 when the gateway has read the operator’s profile names file, 0 when it has not. With a cutoff set and no names read, the gateway takes every task as a profile task. | |
kubeagents_a2a_gateway_profile_names_last_load_timestamp_seconds |
When the gateway last read the profile names file, changed or not, in Unix seconds, and 0 when it never has. The file is re-read every 30 seconds and a read that fails keeps the names last read, so a value that stops moving means the reads are failing. | |
kubeagents_a2a_gateway_profile_supervisor_drops_total |
Each time a read refused an old-form terminal on a profile task because it was stored after the cutoff. One message read three times counts three. A terminal the relay holds while the profile names are not loaded counts once, when it is dropped. | |
process_start_time_seconds |
Captured once at start, which the operator reads for the same reason as the watcher’s. |
A value outside those lists counts under other, and no label carries a task, a conversation or a reason.
Hermes chat metrics
Section titled “Hermes chat metrics”| Series | Labels | What it counts |
|---|---|---|
kubeagents_chat_messages_inbound_total |
platform |
The chat messages that reached the gateway’s dispatch hook, counted before the sender allowlist, by googlechat, slack, teams or other. The label also has an api value for the gateway’s own API port. Messages to that port do not pass through the dispatch hook, so no message counts under it, and the sessions below do not count them either. |
kubeagents_chat_sessions_total |
platform |
The sessions the gateway opened, counted by the session_store plugin on the first message of each under the same labels. |
kubeagents_chat_turns_errored_total |
platform |
The synchronous turns the gateway failed to complete, counted where the turn’s exception, its failed result or a provider authentication failure is turned into the reply. |
kubeagents_kanban_tasks_gave_up_total |
Background cards on the agent’s board whose breaker tripped since the listener started, read off the board at scrape time as the cards with a gave_up event. Hermes parks such a card as blocked; cards already given up when the listener started are its baseline, a card counts once, and it stays after the workspace GC deletes it. |
|
kubeagents_kanban_dispatcher_failed_ticks |
board, error |
A gauge: the task-board dispatcher’s consecutive failed ticks on each board, with the class of the last failure in error. A good tick removes the board’s series, so only failing boards have one; a board with no failure for ten minutes is dropped too, and so is a board that stays quarantined as corrupt for ten minutes. The operator reads it into the KanbanDispatcherFailing condition. |
kubeagents_kanban_dispatcher_failing_seconds |
board, error |
A gauge beside it, for the same boards: how long each board’s current streak has lasted, from its first failure, in seconds. It stops growing 250 s after the dispatcher last tried the board, so a board it no longer tries does not age into the condition. On a locked board each try can last many minutes, and the age keeps growing through them. |
kubeagents_kanban_dispatcher_stuck_seconds |
board |
A gauge for a board whose dispatcher tick ran longer than 300 s, as on a locked board. A tick that fails on a database lock (“database is locked”) after waiting at least one busy timeout counts too; the timeout is 120 s unless the gateway sets HERMES_KANBAN_BUSY_TIMEOUT_MS. The value is the seconds since that tick began. It can appear before the board’s first failure. It stays until a good tick, or until a tick fails for another reason without such a wait. It also goes when the dispatcher stops trying the board for ten minutes, or the board stays quarantined as corrupt that long. Only the tick counts, not the ready probe or auto-decompose. |
kubeagents_chat_feedback_negative_total |
platform |
Thumbs-down reactions a person put on one of the bot’s messages, counted by the chat_feedback_reactions hook once per person and message. The operator reads it into status.usage.negativeFeedbackTotal. |
kubeagents_proposals_opened |
origin, platform |
The pull requests this install opened and the forge confirmed, by the origin of the work that started each and, for chat, its platform. The origins are chat, console, api, event, drift, audit, scheduled, issue and other. The plugin reads the pod’s ledger at scrape time. Every origin has a series, zero when it has opened none. The family is absent until the first successful ledger read. It is a gauge because the ledger is on the pod’s volume, so a change of leader serves another pod’s ledger. The operator reads it, summed over platform, into the nine proposalsFrom<Origin> fields. |
kubeagents_proposals_opened_read_age_seconds |
Seconds since the plugin last read the proposals ledger successfully, served only with kubeagents_proposals_opened. A growing age means the ledger cannot be read and the counts are the last ones read. The operator reads an age over two poll intervals as no origins reading. |
|
kubeagents_skill_invocations_total |
skill |
The skills the agent’s profiles loaded on demand since the listener started, by skill name. Skill loads says what counts. |
kubeagents_cron_runs_total |
cron_job, outcome |
The cron runs that ended since the listener started, by job and by succeeded, failed or lost. Cron runs says what counts. |
kubeagents_cron_skips_total |
cron_job, reason |
The cron slots that did not run since the listener started, by job and reason. |
process_start_time_seconds |
Captured once at process start. |
Skill loads
Section titled “Skill loads”kubeagents_skill_invocations_total counts on-demand skill loads. An agent loads a skill on demand with the skill_view tool. Most of those calls happen in a background worker or a Cluster Agent profile, which nothing scrapes. The plugin therefore reads the count at scrape time from each profile’s audit records (see Tool-call audit).
- Each call that opens a skill counts. A call that opens one of the skill’s reference documents does not.
- The count is of requests. A name the profile has no skill for counts too.
- A name that is not shaped like a skill name counts under
other. So does any new name once 200 are held.
Some skill use is not counted:
- A skill the agent gets without a tool call. A cron job’s
skillsfield and a background task can attach a skill, which goes into the prompt directly. The scheduled fleet audits usefleet-auditthis way, so that use does not appear here. - A record that did not reach the audit file.
- A profile that turns the
tool_call_auditplugin off.
Cron runs
Section titled “Cron runs”kubeagents_cron_runs_total and kubeagents_cron_skips_total count the jobs on the cron rosters. Hermes keeps a ledger of every run in each profile’s cron/executions.db. The plugin reads those ledgers at scrape time.
cron_jobis the job’s id on its roster, such ascompliance-audit. Both rosters are listed on Reference → Cron jobs.- A run counts when it ends.
outcomeissucceeded,failed, orlostfor a run whose process went away before it recorded an end. - A slot that did not run counts as a skip.
reasonis the ledger’s reason, such asmissed_windoworalready_running. - A job id or a reason that is not shaped like one counts under
other. So does a new job once 200 are held. - A job’s three outcomes are served from
0as soon as the job has a run in its ledger, so a rate sees the first failure after a restart. A skip reason has a series once the job has been skipped for it. - A run that is lost because the gateway itself restarts is counted only when the ledger records the loss after the listener has started.
The operator serves the matching pair for an AgentSchedule: kubeagents_schedule_runs_total and kubeagents_schedule_skips_total. Those name the schedule in a schedule label. The cron series use three of that counter’s outcome words.
A job that attaches a skill loads it on every run, so the runs of that job are also the uses of the skill that kubeagents_skill_invocations_total does not count.
The container’s other runtime signals surface as OpenTelemetry traces (below) and tool_call_audit audit records (below); pod-level CPU/memory is available through the Kubernetes metrics API (kubectl top).
The operator’s five-minute status.usage rollup
Section titled “The operator’s five-minute status.usage rollup”The operator reads some of these series itself, every five minutes, and LiteLLM’s token and spend families beside them, and writes them to status.usage on the PlatformAgent. Every counter is kept monotonic across restarts. The proposal, people and origin fields and topTools are readings, which can fall. The six proposal fields are the forge’s counts at the broker’s last sweep, which fall when a repository leaves the managed list. The two people fields are the A2A gateway’s counts of the people who wrote in the last 7 and 30 days, which fall as people stop writing. No reading moves lastActiveTime or lastHumanActiveTime, so a merge does not.
The nine origin fields are the chat plugin’s ledger counts, which fall when a new leader, above one replica, serves its own ledger.
After a broker restart the three details fields (remediationsClosedUnmergedTotal, proposalHumanTouches, proposalsMergedUntouched) clear once two polls in a row find no details reading. They return when the broker has read every proposal again: within the first sweep on a small install, after hours on a large one. The outcomes fields return on the first sweep. That is where an install without a collector sees the counts and how much of its fleet is being watched (CRD reference).
The people fields (peopleSeen7d, peopleSeen30d) clear once two polls in a row find no people reading, including polls that find no running gateway pod. They are absent while a chat platform the install enables is served through Hermes, that is, Microsoft Teams on the Hermes path (spec.integration.teams.backend: hermes, or the operator’s A2A_TEAMS_BACKEND=false with no backend named). They are also absent on an install that does not run the A2A gateway.
topTools is the credential broker’s five most-invoked tool and subcommand pairs since its pod started, so a broker restart starts it over. It clears once two polls in a row find no broker body, and is absent while the broker has run nothing.
The origin fields (proposalsFromChat to proposalsFromOther) clear on the same terms: two polls in a row with no origins reading. A poll has none without a Ready gateway pod, or before the chat plugin’s first ledger read. It also has none once the ledger’s read age passes two poll intervals; a plugin that serves no age keeps the old rule. They are absent until that first read. A failed read keeps serving the last counts, but their read age grows. So a ledger that stops answering clears these fields within about twenty minutes. Each counts only the pull requests the agent saw itself open, so together they usually sit at or below remediationsProposedTotal.
status.usage field |
Source | Note |
|---|---|---|
toolExecutionsTotal |
the broker’s kubeagents_tool_invocations_total over success and error |
|
eventsIngestedTotal |
the watcher’s k8s_event_watcher_events_injected_total |
|
toolExecutionsBlockedTotal |
the same broker series over blocked, busy and abandoned |
|
remediationsProposedTotal |
the broker’s kubeagents_vcs_requests_total under verb="proposal-create" and status="success", summed over provider |
|
remediationsMergedTotal |
the broker’s kubeagents_vcs_proposals under state="merged" |
a reading of the forge, not a total; does not move lastActiveTime |
remediationsOpen |
the same series under state="open" |
a reading |
proposalsAuthored |
the same series summed over state |
a reading; the merge rate’s denominator |
brokerFailuresTotal |
the broker’s kubeagents_broker_execution_failures_total summed over every kind and tool |
does not move lastActiveTime |
remediationsClosedUnmergedTotal |
the broker’s kubeagents_vcs_proposals_closed_by under actor="human" and "bot" |
a reading; the install’s own closes are left out |
proposalHumanTouches |
the broker’s kubeagents_vcs_proposal_touches under actor="human", summed over kind |
a reading |
proposalsMergedUntouched |
the broker’s kubeagents_vcs_proposal_touches_per_proposal under outcome="merged" and le="0" |
a reading |
peopleSeen7d |
the A2A gateway’s kubeagents_a2a_gateway_people_seen under window="7d" |
a reading; absent while a chat platform the install enables is served through Hermes |
peopleSeen30d |
the same series under window="30d" |
a reading; absent while a chat platform the install enables is served through Hermes |
proposalsFromChat |
the chat plugin’s kubeagents_proposals_opened under origin="chat", summed over platform |
a reading; absent until the chat plugin’s first ledger read |
proposalsFromConsole |
the same series under origin="console" |
a reading |
proposalsFromApi |
the same series under origin="api" |
a reading |
proposalsFromEvent |
the same series under origin="event" |
a reading |
proposalsFromDrift |
the same series under origin="drift" |
a reading |
proposalsFromAudit |
the same series under origin="audit" |
a reading |
proposalsFromScheduled |
the same series under origin="scheduled" |
a reading |
proposalsFromIssue |
the same series under origin="issue" |
a reading |
proposalsFromOther |
the same series under origin="other" |
a reading |
chatMessagesInboundTotal |
the chat plugin’s kubeagents_chat_messages_inbound_total; the A2A gateway’s kubeagents_a2a_gateway_messages_inbound_total joins it there |
|
sessionsTotal |
the watcher’s k8s_event_watcher_triage_sessions_total (the sessions it opened whose event the daemon delivered) plus the chat plugin’s kubeagents_chat_sessions_total, plus the A2A gateway’s kubeagents_a2a_gateway_sessions_total |
|
chatSessionsTotal |
the chat half of sessionsTotal: the chat plugin’s kubeagents_chat_sessions_total, plus the A2A gateway’s kubeagents_a2a_gateway_sessions_total |
does not move lastHumanActiveTime. A re-seed from a status that carries no chatSessionsTotal (an install with triage sessions and no chat yet, or a served CRD that holds the field back) seeds those triage sessions into the chat half, and the counter keeps them |
chatTurnsErroredTotal |
the plugin’s kubeagents_chat_turns_errored_total plus the A2A gateway’s kubeagents_a2a_gateway_task_terminals_total under failed and rejected |
does not move lastActiveTime |
backgroundTasksGaveUpTotal |
the plugin’s kubeagents_kanban_tasks_gave_up_total |
does not move lastActiveTime |
negativeFeedbackTotal |
the plugin’s kubeagents_chat_feedback_negative_total; the A2A gateway’s kubeagents_a2a_gateway_answer_feedback_total under rating="down" joins it there |
does not move lastActiveTime |
positiveFeedbackTotal |
the A2A gateway’s kubeagents_a2a_gateway_answer_feedback_total under rating="up" |
does not move lastActiveTime |
autonomousNegativeFeedbackTotal |
the A2A gateway’s kubeagents_a2a_gateway_post_feedback_total under rating="down": 👎 on alerts and scheduled or audit reports, never on answers |
does not move lastActiveTime |
autonomousPositiveFeedbackTotal |
the A2A gateway’s kubeagents_a2a_gateway_post_feedback_total under rating="up" |
does not move lastActiveTime |
inputTokensTotal |
LiteLLM’s litellm_input_tokens_metric_total (or litellm_input_tokens_metric), summed over every label and every LiteLLM pod |
does not move lastActiveTime; the install’s total, where LiteLLM’s own counter starts again at zero on each of its restarts |
outputTokensTotal |
LiteLLM’s litellm_output_tokens_metric_total (or litellm_output_tokens_metric), the same way |
does not move lastActiveTime |
spendMicrosUSDTotal |
LiteLLM’s litellm_spend_metric_total (or litellm_spend_metric), the same way, in micro-dollars (one USD is 1,000,000) |
does not move lastActiveTime; LiteLLM’s own price map decides the figure, and a model it has no price for adds nothing |
clustersRegistered, clustersMonitored |
the watcher’s k8s_event_watcher_cluster_up: the series present, and those at 1 |
the latest reading rather than a total |
topTools |
the broker’s kubeagents_tool_invocations_total by tool and subcommand, summed across the broker pods read |
a reading: the five largest pairs with their outcomes, every word from the broker’s closed vocabularies; moves neither time |
lastHumanActiveTime |
the poll in which a chat message last moved its counter | lastActiveTime moves on any counter, the stall-watch cron’s commands and the fleet audits’ proposals included |
The same poll reads the watcher’s kubeagents_data_volume_bytes into status.storageStatus.capacityBytes and freeBytes and the DataVolumeNearlyFull condition. It also reads the labels of the k8s_event_watcher_cluster_up series into the ScopeUndeclared condition, which names the clusters the reconcile adopted beyond the host while spec.scope declares no membership.
The poll reads the broker’s three kubeagents_vcs_forge_ series into the ForgeConnected condition. It is True when every managed repository on every forge answered the last sweep. It is False when one did not, with the worst state as the reason. It is Unknown when the sweep last reported over an hour ago. Forge connection says what the series cover.
On Slack-enabled installs, the poll reads the A2A gateway’s kubeagents_a2a_gateway_slack_connected gauge into the SlackConnected condition (True on the first 1; False and Degraded with SlackConnectionFailed after two consecutive 0 polls, without changing Ready or phase; see the CRD reference).
The poll reads the plugin’s kubeagents_kanban_dispatcher_failed_ticks into the KanbanDispatcherFailing condition. It turns True with reason TicksFailing at 60 failed ticks in a row on a board, about one poll, or at 3 failed ticks in a streak at least one poll old (kubeagents_kanban_dispatcher_failing_seconds). It turns True with reason TickStuck for a board with a tick that ran past 300 s or failed on a lock after a busy timeout (kubeagents_kanban_dispatcher_stuck_seconds). A stuck board takes precedence. The message follows the reason, the board it names, the last error class and the count of failing boards; it holds no tick count or duration, which the gauges have.
On a locked board each tick waits out the database’s busy timeout once per statement before it fails, so the stuck rules show it within a poll of its first such tick, where the streak rules take about an hour. A good tick on a busy board that waits nearly the timeout three times can also pass the limit; the condition then reads True until the next poll.
The exec tier’s pods feed toolExecutionsTotal, toolExecutionsBlockedTotal and brokerFailuresTotal beside the stateful broker’s; the version-control fields stay the stateful broker’s alone.
The usage questions, one line each
Section titled “The usage questions, one line each”- How many proposals kube-agents creates:
remediationsProposedTotal, every proposal the broker created, andproposalsAuthored, the forge’s count now. - How many merge:
remediationsMergedTotal, a reading of the forge. - How many close without a merge:
remediationsClosedUnmergedTotal, a reading of the forge. - How many human touches each proposal gets:
proposalHumanTouchesoverproposalsAuthored, with the distribution inkubeagents_vcs_proposal_touches_per_proposal. - How often people use the install:
chatSessionsTotalandchatMessagesInboundTotalsay how much, console included.peopleSeen7dandpeopleSeen30dsay how many people, console excluded.lastHumanActiveTimesays when. - What started each proposal: the nine
proposalsFrom<Origin>fields, a reading of the agent’s own ledger, with the chat platform inkubeagents_proposals_opened.
kube-agents sends none of these anywhere. A kube-agents maintainer reads them through your collector, if you share it, or the summary block you paste into a ticket (design).
The operator’s gauges
Section titled “The operator’s gauges”The operator serves that status back out as gauges on its own metrics listener, so one scrape of the operator’s leader pod reads every PlatformAgent’s view without reaching the producers:
| Series | Samples |
|---|---|
kubeagents_platformagent_usage{agent_namespace,agent,field} |
one per counter, cluster gauge and scalar reading of status.usage (the two lists, activeInterfaces and topTools, have no sample), the field label the status key (chatTurnsErroredTotal, clustersMonitored, proposalsFromChat to proposalsFromOther, …), the value as the status last held it |
kubeagents_platformagent_usage_time_seconds{agent_namespace,agent,field} |
lastActiveTime and lastHumanActiveTime as unix seconds, no sample while the status holds no time, and createdTime, the PlatformAgent’s own creation timestamp, for an install’s age |
kubeagents_platformagent_phase{agent_namespace,agent,phase} |
one-hot over Pending, Provisioning, Ready, Paused, Degraded and Failed |
kubeagents_platformagent_model{agent_namespace,agent,provider,model,reasoning_effort} |
one per install at 1, the labels the status.inference pair and its reasoning effort (reasoning_effort empty while the status holds none), no sample while the status holds no pair |
The operator sets the samples from the PlatformAgent as it reads it on every reconcile, and every status write re-enqueues one, so a write by the poller or by any status writer is published on the reconcile it triggers and an operator restart serves the whole fleet on its first pass; a deleted agent’s samples go when its reconcile finds it gone. The values are the status’s, so they are five minutes behind the producers at most. While a served CRD older than the operator prunes status.usage, the pruned fields’ samples are absent for that agent rather than zero, the whole block or field by field as the server prunes it, and the phase and createdTime stay.
Which provider and model serve an install is status.inference, the default model the operator reads from the install’s LiteLLM config (CRD reference). The model gauge carries it with the reasoning effort configured on that model. When either changes the old sample goes before the new one is set, so an install never reads as two models or two efforts. Over a shared project, sum by (provider, model) (kubeagents_platformagent_model) counts the installs on each model and sum by (reasoning_effort) (kubeagents_platformagent_model) the installs at each effort.
The agent’s labels are agent_namespace and agent, not namespace and name: the collector owns namespace as a target label and would have renamed the agent’s to exported_namespace. time() - kubeagents_platformagent_usage_time_seconds{field="lastHumanActiveTime"} is how long since a person last talked to an install, and kubeagents_platformagent_usage{field="chatTurnsErroredTotal"} over {field="chatMessagesInboundTotal"} is the share of turns that failed, with no PromQL over a status document.
Answer feedback across installs
Section titled “Answer feedback across installs”Three metric series carry ratings as counts, read by a collector you run. Neither carries a note, a question, an answer or a user; the collector adds the project, location and cluster it scraped. The text of a rating stays on the install unless you take it out with the gateway’s feedback export, which writes the question, answer and note:
kubeagents_platformagent_usage{field="negativeFeedbackTotal"}and{field="positiveFeedbackTotal"}, the operator’s gauges of each install’s thumbs-downs and thumbs-ups, beside{field="chatMessagesInboundTotal"}for its chat messages. Both come from the answer feedback controls below.{field="autonomousNegativeFeedbackTotal"}and{field="autonomousPositiveFeedbackTotal"}are the same ratings on the posts the agent made on its own, alerts and reports, kept out of the answer counts. One scrape of the operator covers every install in its cluster.kubeagents_a2a_gateway_answer_feedback_total{platform, rating, answer}, the 👍 and 👎 on the answer feedback controls, straight from its A2A gateway, one count per rating change;answersplits the agent’s own replies from card reports.kubeagents_a2a_gateway_post_feedback_total{platform, rating, kind}, the same controls on the alerts (kind="alert") and reports (kind="report") the agent posts on its own, counted apart from answers.
Managed Prometheus writes every cluster’s samples to its project with project_id, location and cluster labels. A Cloud Monitoring metrics scope that monitors several projects lets one PromQL query read all of them. These queries give a fleet view:
# Thumbs-downs per install over the last daysum by (project_id, location, cluster, agent_namespace, agent) ( increase(kubeagents_platformagent_usage{field="negativeFeedbackTotal"}[1d]))
# Thumbs-downs per 100 chat messages, per install with any, last 7 days100 * sum by (project_id, location, cluster, agent_namespace, agent) (increase(kubeagents_platformagent_usage{field="negativeFeedbackTotal"}[7d]) > 0) / sum by (project_id, location, cluster, agent_namespace, agent) (increase(kubeagents_platformagent_usage{field="chatMessagesInboundTotal"}[7d]))
# Share of gateway rating changes that were to 👍, per cluster, last 7 dayssum by (project_id, location, cluster) (increase(kubeagents_a2a_gateway_answer_feedback_total{rating="up"}[7d])) / sum by (project_id, location, cluster) (increase(kubeagents_a2a_gateway_answer_feedback_total{rating=~"up|down"}[7d]))An install whose metrics you cannot reach still has the counters in status.usage. This prints the three counts per install across every context in your kubeconfig, with no names; <none> is 0:
for ctx in $(kubectl config get-contexts -o name); do kubectl --context "$ctx" --request-timeout=10s get platformagents -A --no-headers \ -o custom-columns=THUMBS_DOWN:.status.usage.negativeFeedbackTotal,THUMBS_UP:.status.usage.positiveFeedbackTotal,MESSAGES:.status.usage.chatMessagesInboundTotaldoneHealth cohorts and alerts
Section titled “Health cohorts and alerts”The chart can turn those gauges, with the A2A gateway’s Slack connection gauge and the scrape jobs’ up, into the health cohorts. platformAgent.healthRules.enabled: true renders one Managed Prometheus Rules object, <name>-health-rules, in the install’s namespace. The managed rule-evaluator runs it against the namespace’s metrics. It is off by default, because on means alerts fire.
The rule-evaluator forwards alerts to Managed Prometheus’s managed Alertmanager. That Alertmanager routes them by the alertmanager Secret in gmp-public, or by the OperatorConfig’s rules.alerting entry. A Cloud Monitoring alerting policy does not read a Rules object, so configure that Secret before turning the rules on.
Recording rules carry the ratios: kubeagents:platformagent:chat_turns_errored_ratio_1d, broker_failure_ratio_1d, commands_blocked_ratio_1d, proposals_rejected_ratio_14d and proposals_merge_rate_14d. The two proposal ratios read four more recorded series: proposals_merged_14d, proposals_closed_14d and proposals_authored_14d, the window deltas of the readings, and proposals_fell_14d, the fall guard, present only while proposalsAuthored fell inside the window. The alerts read them and the gauges. Each carries severity; every alert but the scrape and Slack ones carries the agent’s agent_namespace and agent, the scrape alert carries the job, and the Slack alert the namespace and job.
at_risk, the install is broken for its users:
KubeAgentsAgentDegraded: phase Degraded or Failed for a day.KubeAgentsClustersUnwatched: clusters registered above clusters monitored for two days.KubeAgentsChatTurnsErroring: errored turns over inbound messages above 0.15 in a day, with at least 3 messages.KubeAgentsBrokerFailing: broker failures over tool executions above 0.15 in a day, with at least 10 calls.KubeAgentsBackgroundTasksGivingUp: 3 or more gave-ups in 7 days.KubeAgentsSlackDisconnected: no 1 in the A2A gateway’skubeagents_a2a_gateway_slack_connectedfor 5 minutes (slackDisconnectedFor), so Slack messages are not reaching the agent. A rejected token reads 0 throughout, since the gateway stays up and retries Slack, and a missed scrape does not reset the window. It needs the gateway’s<name>-a2a-gateway-monitoringscrape and fires only when the gateway holds Slack; a gateway never scraped at all isKubeAgentsScrapeBroken’s.
friction, it works but people are not getting value:
KubeAgentsStalledOnboarding: older than 5 days, read from thecreatedTimesample, and eitherlastHumanActiveTimeis more than 30 days old or the chat counter reads zero.KubeAgentsProposalsRejected: closed unmerged at or above 0.75 of decided proposals in 14 days, with at least 3 closed unmerged and 4 decided.KubeAgentsProposalsUnmerged: under 10% merged of 5 or more proposals in 14 days.KubeAgentsCommandsBlocked: blocked over executions above 0.30 in a day, with at least 10 calls.KubeAgentsNegativeFeedback: 2 or more thumbs-downs in a day.KubeAgentsScrapeBroken: a scrape job of the install atup == 0for two days, so the rest of this page is dark for it.
The two proposal alerts read the forge’s readings. A fall in proposalsAuthored, a repository removed from the managed list or a proposal deleted, silences both for 14 days.
Every number above is a value under platformAgent.healthRules.thresholds. Every alert without a window of its own, the ratio and count alerts, holds for ratiosFor, an hour, before it fires. Set a ratio through a values file or --set-json, since helm --set keeps a decimal as a string. Pod restarts, the memory limit and the operator’s version are not in this set, because a stock install has no series for them; they need kube-state-metrics. The scrape alert sees a job whose targets fail, not a PodMonitoring that matches no pod, which has no up series at all.
OpenTelemetry traces
Section titled “OpenTelemetry traces”- LiteLLM and vLLM export spans directly to the GKE OTel collector (
gke-managed-otelnamespace). That collector is the default, not a requirement — see Deploy → Telemetry for pointing the deploy at your own. - Hermes exports session, tool-call, and MCP spans via the
hermes_otelplugin, enabled in every profile config (agents/chat/config.yamlfor the Planning Agent,agents/platform/config.yamlfor the Platform Agent, and theagents/cluster/config.yamltemplate for the per-cluster Cluster Agents). - Traces route to Google Cloud Trace.
- All of this assumes a collector. On a cluster that has none, the operator disables the agent’s exporter rather than pointing it at one that is not there —
status.telemetry.otlpEndpointSourcereadsNone, and export resumes on its own within 15 minutes of a collector appearing. See Deploy → Telemetry.
Cloud Logging
Section titled “Cloud Logging”All container stdout/stderr is ingested by Cloud Logging by the GKE log agent. Cluster and pod labels flow through automatically. The Platform Agent writes its own logs to files under /opt/data/logs/*.log; a fluent-bit sidecar tails that shared volume and streams the lines to stdout so they reach Cloud Logging alongside every other container. Audit records arrive as structured jsonPayload fields rather than as text to parse. The tool_call_audit plugin and the chat_message_audit hook write theirs to a file of their own, logs/audit.jsonl in the profile’s home, which the same sidecar tails as JSON (below).
The credential broker’s own log is one JSON object per line, the record that says why it refused to start included — severity, timestamp, logger, message, and exception when a traceback is attached — and each command on the broker’s exec route adds tool_execution_audit records whose request_id, principal, tool, subcommand, status, broker_tier, class and broker_pod are fields of their own (plus pod, the caller’s pod when its token was pod-bound, which is how a session pod’s command is tied to its conversation), with exit_code and duration_ms once a command has run (a command killed after its caller left has the duration only) and rule on a refusal.
A read through the broker’s Cloud API relay adds the same records, with tool set to gcp-api. Its subcommand is the Google service: monitoring, cloudtrace, container, logging, cloudbilling, or other for a host the relay does not serve. A forwarded read carries upstream_status, the HTTP status Google returned, in place of exit_code. The message of a relay record names the host and the path as the caller sent them, cut to a fixed length, and never the query.
A log read that the relay accepts writes one more broker log line, api body checked, before it asks Google. That line ends with resource=projects/<project>, the project whose entries the read asked for, so a read that fails after that point still names its project. The line is not a tool_execution_audit record and has no fields of its own: its message carries request_id=<id>, so search the message text for the request_id of the read’s records. The record of a forwarded log read ends its message with the same resource=. A refused log read names no project.
broker_tier is exec on an exec-tier replica and stateful on the stateful broker. class is the admission class the request runs under, interactive or background. broker_pod is the pod of the broker that wrote the record, so each record is traced to one replica.
The record’s status is started, completed, blocked, rejected, failed, abandoned or busy, a different vocabulary from the metric’s above: completed says the command ran, whatever its exit code, and exit_code says how it went. Those fields carry identifiers and outcomes only.
The record’s message is the broker’s log text, which names identifiers rather than values: the executable; on a policy refusal, the rule id and, for a read-only refusal, the verb path or the name of the flag it tripped on; on a workspace-lease refusal or a containment rejection, the requested directory or kubeconfig path; on a scoped-credential refusal, the project, location and cluster asked for; on a rejection because the broker could not fetch a cluster’s credentials, what its own gcloud said on stderr, truncated; and never an argument value, an input, or the output of the caller’s command.
A version-control write of a profile task that succeeds writes one broker log line whose event_type is profile_vcs_write. Its fields are verb (publish, proposal-create or proposal-update), task, jti (the id of the task’s credential) and repository. The repository value is the forge, the host and the path in lower case, such as github:github.com/acme/infra. A publish adds branch; the two proposal verbs add number and url. A write that is refused or that fails leaves no such line. The line is not a tool_execution_audit record, so it has none of the fields above.
Nothing in the envoy-credential-proxy container may log credential material. That container, in the credential-proxy Pod, is the one place holding cluster credentials, GCP tokens, and chat secrets, and everything it writes to stdout leaves the cluster through the path above. The same rule covers the event watcher and the drift detector, which both run in the gateway Pod’s agent-api-auth sidecar: they log identifiers — cluster, namespace, pod, event reason, profile directory, and for the detector the principal and resource name a change names — and never a token, a kubeconfig body, or a request header.
The broker records two bodies. One is the stdout and stderr of its start-up shell bootstrap when that command fails, truncated but not redacted. The other is the GitHub refresh helper’s stderr, because a broker that refuses a mint is otherwise recorded nowhere — the caller gets a reason code with no detail, and the reason code is all a chat room ever sees; that text is passed through a redactor that blanks GitHub token and JWT shapes before it is logged. The rules the code follows to keep it that way are in docs/credential-isolation-design.md.
Session metadata plumbing
Section titled “Session metadata plumbing”Every Chat message carries session context (space ID, user, thread) that flows through Hermes as OpenTelemetry span attributes and out to Cloud Trace. The session_store and session_otel_bridge plugins that do this run on the Planning Agent profile, which owns chat ingress. The trace is documented in docs/designs/gchat-session-metadata-data-flow.md.
Inline Console links
Section titled “Inline Console links”SOUL.md §5 requires the agent, whenever it’s discussing telemetry, tracing, logs, or debugging, to generate clickable Cloud Console links using the active project ID. The URL templates live in agents/platform/docs/gcp-console-links.md — a shared runtime reference baked into the agent image at /opt/defaults/docs/ and inlined directly into SOUL.md §5 — covering Logs Explorer, Trace Explorer, Metrics Explorer, and the GKE Workloads console. The agent substitutes the runtime project ID and formats the links as Markdown so they render clickable in Chat.
Auditing the agent itself
Section titled “Auditing the agent itself”The kube-agents-observability skill audits the harness’s own telemetry — logs, traces, metrics, API/dashboard observability of the Platform Agent. Use it when triaging “why did the agent do X?” or “why isn’t the agent responding?”.
Tool-call audit
Section titled “Tool-call audit”The tool_call_audit plugin (enabled on every profile: the Planning Agent, the Platform Agent and each Cluster Agent) writes per-tool-call records for every skill invocation and MCP tool call, and the chat_message_audit hook writes a record at each stage of a chat turn: chat_message_start, one chat_message_step per agent iteration, chat_message_end.
Each record is one JSON object: event_type (and audit_event, the same value under the name the Admin Console queries), severity, timestamp, and the event’s own fields: tool, status and task_id on the tool-call records, with duration_ms on the one that ends a call; status on the approval records; session_id and a pseudonymised principal on gateway_dispatch and the chat-turn records. The tool-call records also carry the session_id of the session the call ran in, empty for a call outside any session.
Arguments, results and message text are redacted (AuditRedactor) and truncated by the emitters, and inside Hermes the whole line then passes through Hermes’ own redact_sensitive_text, the engine its RedactingFormatter applies to agent.log and whose token list is the wider of the two, forced so that a profile’s security.redact_secrets: false does not reopen a trail that leaves the pod. Each emitter appends its record to logs/audit.jsonl under the profile’s home, one JSON object per line: /opt/data/logs/audit.jsonl for the Planning Agent, /opt/data/profiles/<name>/logs/audit.jsonl for a named profile.
The two emitters rotate that file themselves at 5 MiB with three backups, the bound Hermes keeps by default on its agent.log. They are not its only possible writer, though: any process under the agent’s uid with a path to the profile’s logs/ can append a line the sidecar ships as a record, which is the volume’s boundary rather than the sidecar’s.
The fluent-bit sidecar tails every profile’s copy with its JSON parser, so the record’s keys arrive as fields of their own, jsonPayload.event_type, jsonPayload.tool and so on, with jsonPayload.file_path naming the file and therefore the profile; no regex over a Hermes log line is involved, so a Hermes release that changes its log format does not touch the trail, and a line in agent.log shaped like a record does not enter the structured trail (the Admin Console’s text-form query still reads such lines, as it reads the records written that way before the file existed).
The writes from the gateway and its worker processes are serialised by a lock file beside the audit file, audit.jsonl.lock, which nothing tails; the lock is taken without blocking and retried for 1.5 s, after which the record takes the fallback below rather than hold up the tool call the plugin’s hook is part of. A record the emitter cannot write to the file, because the volume is full or read-only, the lock is held past that wait, or Hermes refuses to materialise the profile’s directory, is printed instead to the emitting process’s stdout as the same JSON line, and an ERROR naming the file and the error, without the record, goes to that process’s agent.log.
What the two reach depends on the process. From the gateway the stdout is the container log, so the GKE log agent ships the record to Cloud Logging as jsonPayload under the agent container rather than the sidecar and jsonPayload.audit_event:* still finds it, and the ERROR lands in the Planning Agent’s agent.log, which the sidecar tails. From a kanban worker neither reaches Cloud Logging: the stdout is the worker’s captured transcript, the board’s logs/<task>.log on the same volume, and the ERROR lands in the named profile’s agent.log, which the sidecar’s *.log input under /opt/data/logs/ does not reach; on a full volume the transcript write fails too, and the ERROR is the only trace.
jsonPayload.audit_event:* in Logs Explorer is the query for the trail (event_type is on the broker’s records too; audit_event is only on these). Roll the operator with or before an agent image that carries these emitters: under an operator whose sidecar configuration predates the agent.audit input, the file is written and nothing tails it, and the records reach Cloud Logging only once the operator’s ConfigMap carries that input.
Sharing a usage and feedback summary
Section titled “Sharing a usage and feedback summary”An install that cannot send telemetry can still share how it is doing: scripts/feedback-summary.sh prints one fenced Markdown block, short enough to read in full before pasting it into an email or a chat message. It writes nothing.
It reads the PlatformAgent resource with kubectl get. Unless --no-exec is given, it also reads the cluster’s object counts and runs kubectl exec into the credential broker pod for its metrics on port 8766, and into the gateway pod for the task feed and the inference gateway’s metrics. A section whose source cannot be read prints as unavailable (the scale line is omitted when unread), one line on stderr says why. A task count with a + means the feed was cut at its ceiling.
scripts/feedback-summary.sh --namespace kubeagents-systemThe block carries the image tag, the mode, the model as provider/name from status.inference (when the status has no inference key, under an older operator or CRD, from the LiteLLM config ConfigMap by the model-default entry rule; a Vertex AI endpoint path or a Bedrock ARN keeps its resource id only, so its project, region and account are not printed), the Kubernetes version, the install’s age and readiness, the cluster’s scale counts, the status.usage counters (including friction counters and lastHumanActive), the readings marked as the forge or the gateway reports them (no reading when absent), the top five credential broker tool/subcommand pairs since the broker pod last started, the performance figures and a short feedback template.
The reasoning effort: line under model: is the effort configured on that model, unset when the config states none and unavailable whenever the model is.
The performance figures open with the token and spend totals since install, read from status.usage, which survive a LiteLLM restart; the live LiteLLM figures beneath them do not.
One proposals by origin: line follows the readings. It lists the origins above zero and ends (as the agent reports). It reads none when all nine are zero and no reading when the status has none.
The operator publishes its own reading of the broker’s counter as status.usage.topTools every five minutes: the five largest pairs, summed across the broker pods it read. The script prints that list when it cannot read the broker itself, --no-exec included, and the in-chat /feedback summary always prints it from there, line for line the same block; a status with no list prints unavailable.
The script needs more than a read of the resource for a full block. The broker and gateway reads run kubectl exec, so they need pods/exec (and pods list) in the install’s namespace; the scale line needs cluster-wide list on namespaces, deployments, pods, nodes and CustomResourceDefinitions. The resource read alone still prints the counters, the readings and the status’s tools list.
It names no cluster, project, namespace, user or workload: the script refuses to print, with exit code 3, if the resource’s name or namespace, or any string from the spec blocks that name the install (harness, scope, integration, security, chat, telemetry, networkPolicy), appears in the block outside the model: and proposals by origin: lines as a whole token; booleans, numbers, strings under three characters and the block’s own vocabulary are not checked, and the deployment block is not read because nothing the block prints draws from it. The task feed is the Platform Agent’s own board; per-conversation session pods keep no board.
Where to go next
Section titled “Where to go next”- Deploy → Telemetry — install-side details on the GKE Managed OTel and Prometheus config.
- Reference → Attribution — how a tool call ties back to the authenticated human.