Skip to content

fix(enrichment tables): emit _total-suffixed names for memory table counters#25811

Open
RajMandaliya wants to merge 8 commits into
vectordotdev:masterfrom
RajMandaliya:fix/memory-enrichment-counter-total-suffix
Open

fix(enrichment tables): emit _total-suffixed names for memory table counters#25811
RajMandaliya wants to merge 8 commits into
vectordotdev:masterfrom
RajMandaliya:fix/memory-enrichment-counter-total-suffix

Conversation

@RajMandaliya

Copy link
Copy Markdown

Summary

Three memory enrichment table counters didn't end in _total, violating the instrumentation spec (docs/specs/instrumentation.md: "Counters MUST end with total"):

  • memory_enrichment_table_failed_insertions
  • memory_enrichment_table_failed_reads
  • memory_enrichment_table_ttl_expirations

Per discussion on the issue, this should not be an immediately breaking change, so both the old and new (_total-suffixed) names are now emitted simultaneously. The old names are marked deprecated in a doc comment and should be removed in a future release once consumers have had time to migrate.

Vector configuration

N/A — this only affects internal metric names emitted by the memory enrichment table, not user-facing configuration.

How did you test this PR?

  • cargo check — compiles cleanly
  • cargo test --lib enrichment_tables::memory — all 16 existing tests pass
  • Manually confirmed via grep that the old metric name strings only appear in the two files intentionally touched (metric_name.rs, internal_events.rs), with no stale references elsewhere in .rs/.md/.cue files

Change Type

  • Bug fix

Is this a breaking change?

  • Yes
  • No

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.

(Changelog fragment included: changelog.d/25455_memory_enrichment_counter_total_suffix.deprecation.md)

References

Notes

Ran cargo check and the relevant test suite locally; have not yet run make fmt / make check-clippy / full make test — will do before requesting review if not already green in CI.

@RajMandaliya
RajMandaliya requested a review from a team as a code owner July 13, 2026 03:19
@github-actions

github-actions Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@datadog-vectordotdev

This comment has been minimized.

@RajMandaliya

Copy link
Copy Markdown
Author

Thank you for your contribution! Before we can merge this PR, please sign our Contributor License Agreement.

To sign, copy and post the phrase below as a new comment on this PR.

Note: If the bot says your username was not found, the email used in your git commit may not be linked to your GitHub account. Fix this at github.com/settings/emails, then comment recheck to retry.

I have read the CLA Document and I hereby sign the CLA

You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

I have read the CLA Document and I hereby sign the CLA

…ounters

Three memory enrichment table counters didn't end in _total, violating
the instrumentation spec (docs/specs/instrumentation.md: "Counters MUST
end with total"):

- memory_enrichment_table_failed_insertions
- memory_enrichment_table_failed_reads
- memory_enrichment_table_ttl_expirations

Both the old and new (_total-suffixed) names are now emitted
simultaneously to avoid breaking existing scrape configs and
dashboards. The old names are deprecated and will be removed in a
future release.

Fixes vectordotdev#25455
@RajMandaliya
RajMandaliya force-pushed the fix/memory-enrichment-counter-total-suffix branch from 62722b5 to ce91fc5 Compare July 14, 2026 00:54
@RajMandaliya

Copy link
Copy Markdown
Author

recheck

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1f43dee068

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@RajMandaliya

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@RajMandaliya
RajMandaliya force-pushed the fix/memory-enrichment-counter-total-suffix branch from 1f43dee to b6bc4b6 Compare July 14, 2026 01:15
@RajMandaliya
RajMandaliya requested review from a team as code owners July 14, 2026 01:15
@github-actions github-actions Bot added the docs review on hold The documentation team reviews PRs only after a PR is approved by the COSE team. label Jul 14, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6d9a5d7e4c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread website/data/deprecations.json

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b289813f01

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread deprecation.d/memory-enrichment-table-counter-names.md

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 14831844b3

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@@ -0,0 +1,12 @@
Three memory enrichment table counters now also emit a `_total`-suffixed name to comply

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use a supported changelog fragment type

When this PR reaches the changelog CI check, this added fragment is rejected because the filename uses .deprecation.md; I checked scripts/check_changelog_fragments.sh, where FRAGMENT_TYPES is limited to breaking|security|feature|enhancement|fix, and MERGE_BASE=e51fa72fa986f0762529a11799085325924d6e8b^ ./scripts/check_changelog_fragments.sh fails with fragment type must be one of. Rename the fragment to a supported type such as .fix.md so the required changelog validation can pass.

Useful? React with 👍 / 👎.

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

Labels

docs review on hold The documentation team reviews PRs only after a PR is approved by the COSE team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

metrics: rename memory enrichment table counters to end with _total

1 participant