Skip to content

docs(openspec): plan #4697 Keep one metric stream per workload - #5032

Closed
devops-cli-service[bot] wants to merge 1 commit into
mainfrom
fix/4697-keep-one-metric-stream-per-workload
Closed

devops-cli-service[bot] wants to merge 1 commit into
mainfrom
fix/4697-keep-one-metric-stream-per-workload

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

Plans #4697

The metric Resource carries host.name, the pod name. The collector keys a stream by every resource attribute, while Prometheus keeps only job and instance, so each pod start begins a new total in one series, and a total that is not lower than the old one is lost (#4697). The change builds the metric Resource from service.name, service.namespace, service.instance.id, os.type and telemetry.sdk.* only, reads service.instance.id from OTEL_RESOURCE_ATTRIBUTES, and keeps host.name on spans and logs. Both CronJob templates set service.instance.id=devops-cli-job, and one cluster Job runs at a time, so one process writes the stream. The alert DevopsCliMetricStreamsShareSeries warns when two streams write one Prometheus series for 30 minutes, with promtool cases and a runbook row.

Change: openspec/changes/4697-keep-one-metric-stream-per-workload/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix labels Nov 12, 2026
dan-petty added a commit that referenced this pull request Nov 12, 2026
The stage writer gave a `manifest` group the tasks of a `behavior` group
and wrote no `Kind:` line (#3981). The reader read it as `behavior`, and
the #3035 rule refused each such group with no path under `src/`, so
#4963 and #5032 could not be read.

- The writer writes `Kind: <kind>. Reads: ... Changes: ...` for each
group.
- The reader reads the kind from that line. A group of the old form (no
line, or a word that is no kind) gets its kind from its tasks:
`behavior` with a path under `src/`, else `manifest`, or `other`.
- The reader reads `## Unchanged references`, and drops only the last
fits-one-PR line.
- `FIELDS_NOT_IN_FILES` and `file_facts` state what a round trip keeps.
Hypothesis tests hold it.

The issue asks for an error on a word that is no kind. #3164 holds
`Kind: documentation.` and reads on the base, so the reader keeps the
inference for that word.

Closes #5205

Change:
`openspec/changes/archive/2026-11-12-5205-write-and-read-the-kind-of/`
@dan-petty

Copy link
Copy Markdown
Owner

Closed: the plan cites a removed option (2026-11-12)

uv run devops roadmap plan-check 5032 fails on the paths gate on 0.123.1:

openspec/changes/4697-keep-one-metric-stream-per-workload: stage: The plan cites `uv run devops docs generate --sync-readme`: unknown option '--sync-readme' for 'devops docs generate'.

Task 2.3 of tasks.md runs uv run devops docs generate --sync-readme, and #5198 removed the option --sync-readme. With the reader fix of #5262 the plan reads, but it drifted from main. A fix-plan run would hit the defect of the discarded gated plan until #5213 merges. So the triage rule applies: plan the item again, and do not fix this plan.

#4697 now holds a constraint line, so the stage job plans the item again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/openspec OpenSpec changes, specs and their checks type/docs Type docs: a change to the documents verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant