Skip to content

Long-term metrics: laptop remote_write to the phone (after the lab soak) - #151

Draft
MIERAI wants to merge 1 commit into
mainfrom
promlt-laptop
Draft

MIERAI wants to merge 1 commit into
mainfrom
promlt-laptop

Conversation

@MIERAI

@MIERAI MIERAI commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Production step. Do not merge until both hold: the lab soak of the same remote_write (≥ 1h since 11:08 UTC, from #150; evidence in a comment below) and daytime JST.

This sends the laptop's metrics to the long-term store on the phone (~/promlt, a second official Prometheus, 1 year / 150 GB). The settings are exactly the lab's (#150), except for the label: cluster=laptop on the copy only.

  • Small queue: capacity 2500, 1–2 shards, 1000 samples per send, backoff 1s–1m, timeout 30s. Prometheus reads the queue from its WAL in the background, so the phone being down never blocks scraping, rules or alerting. Unsent samples are dropped after about 2h.
  • Not sent: job="apiserver" and the control-plane / runtime histograms (same list as the lab).
  • Cost on the laptop: one queue shard; memory roughly capacity × shards worth of samples, a few MiB. Prometheus's limit stays 1536Mi.
  • Phone storage estimate: the laptop appends about 5.6k samples/s in total; after the drops, expect roughly 2–2.5k/s, about 0.25 GB/day. Lab + laptop together should come to roughly 150 GB/year; the 150 GB cap keeps at least 400 GB free on the phone.
  • Rollback: revert this PR. Prometheus drops the remote_write queue on reload.

Render (product render.py v0.1.5, main → this branch):

  • laptop: the 28 Applications are byte-identical; in the root, only platform-monitoring's prometheus.prometheusSpec.remoteWrite changes (+23 lines). The existing retentionSize / storageSpec values are untouched.
  • lab: unchanged.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Rendered diff (as Argo CD renders: kustomize / Helm, against origin/main)

No change in the rendered manifests.

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.

1 participant