Skip to content
Back to skills

Events Stall

ASecurity

Known issue with `forge.KubernetesInventory` events — on a quiet GKE cluster the cluster collector's `k8sobjects` watch on events.k8s.io `events` can stop for good with no error (upstream opentelemetry-collector-contrib#51982). How to spot it, the restart mitigation, how to keep the watch alive, and what forge is doing about it.

  • 12 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 1, 2026
ai-agentsgobashnodekubernetesgitapi

Works with

  • api

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add reliant-labs/forge --skill events-stall --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Events Stall?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Events Stall
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/reliant-labs-events-stall/badge)](https://www.skillsdirectory.com/skills/reliant-labs-events-stall)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: observability/destination/events-stall
description: Known issue with `forge.KubernetesInventory` events — on a quiet GKE cluster the cluster collector's `k8sobjects` watch on events.k8s.io `events` can stop for good with no error (upstream opentelemetry-collector-contrib#51982). How to spot it, the restart mitigation, how to keep the watch alive, and what forge is doing about it.
---

# Kubernetes inventory: the Events watch can stall

`forge.KubernetesInventory` (`observability/destination`) watches events.k8s.io `events` through the collector's `k8sobjects` receiver in `mode: watch`. An upstream collector bug, [opentelemetry-collector-contrib#51982](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/51982) (open; every contrib release forge pins is affected), can stop that watch for good while the pod stays Ready and logs nothing.

## Why

When the API server ends a watch, the receiver resumes from the resourceVersion of the last event it saw, and re-lists only on `410 Gone`. On GKE, a resumed watch on events from a version older than about five minutes answers with an empty stream instead of `410`, so the receiver retries the same stale version forever. GKE sends no watch bookmarks for events, so on a cluster that goes five minutes without a single event (few workloads, no chattering controllers) the next watch close is enough. It is typically reached within hours of each collector start.

`nodes`, `daemonsets` and `deployments` are pulled every interval, not watched, and are not affected.

## Spot it

Event rows from that cluster (`k8s.resource.name` = `events`, by `k8s.cluster.name`) stop while its Node and Deployment rows keep arriving every interval. The pod is Ready, has not restarted, and its log shows no watch error.

## Mitigate

Restart the collector; it re-lists and resumes from a fresh version:

```bash
kubectl -n <agent.namespace> rollout restart deployment/cluster-collector
```

It stalls again after the next quiet stretch.

## Keep it alive

Anything that creates an event in the cluster more often than every five minutes keeps the resume version fresh. For example, a small Deployment of your own, in its own namespace, that creates one Event a minute through the API. Its ServiceAccount needs only `create` on `events` (core and events.k8s.io) in that namespace, through a Role, never a ClusterRole. Give the Event `firstTimestamp` and `lastTimestamp`. Its events reach your destination like any other: filter them out there, or by reason in your own collector.

If you do not need events, `forge.KubernetesInventory {events = False}` removes the watch; the pulled inventory is unaffected.

## What forge is doing

The fix is tracked as a forge bug: run the cluster collector on a contrib release with the `k8sobjects` informer-based watch (feature gate `receiver.k8sobjects.useInformerObserver`, contrib 0.164 or newer), which re-lists on its own, or take the upstream fix once it is released. This skill goes away when that ships.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.