Skip to content

fix(observability): give grafana room to render dashboards - #254

Merged
Tiago0507 merged 3 commits into
mainfrom
fix/grafana-memory-limit
Sep 29, 2026
Merged

Tiago0507 merged 3 commits into
mainfrom
fix/grafana-memory-limit

Conversation

@Tiago0507

Copy link
Copy Markdown
Contributor

What changes

  • The Grafana container in infrastructure/grafana/deployment.yaml requests 256Mi and is limited to 512Mi, instead of 128Mi and 256Mi. The full profile builds on this base and does not override it.
  • tests/contract/observability.sh requires a limit of at least 512Mi.
  • spec 006 gains T059.

Why

On eks-dev, Grafana restarted each time an operator opened the golden-signals dashboard to take the observability evidence:

grafana-6f9c65487-w6sng   0/1   Running   3 (23s ago)   3h9m
    Last State:     Terminated
      Reason:       OOMKilled
      Exit Code:    137

The port-forward then failed with connect: connection refused and the browser could not load the dashboard.

Tasks

gitops specs/006-observability-platform-foundation T059 (added and delivered here).

  • The task register is updated in this pull request
  • Every task ticked here was verified by locating its artifact

How it is verified

microservice-app-ai-agents/scripts/check-mcp.sh gitops . passes. No MCP server documents Grafana's memory needs; the evidence is the OOMKilled status above.

$ tests/contract/observability.sh
FAIL: Grafana's memory limit must be at least 512Mi (found 256Mi in infrastructure/grafana)
$ tests/contract/observability.sh
PASS: observability platform static contract (prometheus, grafana, jaeger, loki); registration asserted
$ tests/platform/observability-full.bats
PASS: full-profile observability roots ...

The observability namespace has no ResourceQuota or LimitRange (kubectl get resourcequota,limitrange returns none), so the higher request schedules on the existing nodes.

  • Infrastructure changes: the documentation consulted through the required MCP servers is listed above

Risk and rollback

Grafana restarts once, and each node's reservable memory drops by 128Mi. Rollback is a revert of the merge commit.

What this PR does not do

  • It does not change Grafana's CPU, dashboards, or datasources.

Merge method: merge commit. This PR carries a Spec-Driven Development test/fix pair (docs #40).

Approval required: one maintainer approval (EstebanGZam or Juanmadiaz45).

🤖 Generated with Claude Code

…ashboard

On eks-dev Grafana was OOMKilled (exit 137) three times at its 256Mi limit
while an operator opened the golden-signals dashboard. The contract
requires at least 512Mi and fails:
FAIL: Grafana's memory limit must be at least 512Mi (found 256Mi in infrastructure/grafana)
@Tiago0507
Tiago0507 merged commit fe538de into main Sep 29, 2026
4 checks passed
@Tiago0507
Tiago0507 deleted the fix/grafana-memory-limit branch September 29, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants