Skip to content

feat: default cloud monitoring configs to central enrichment (DAQ-31363) - #750

Merged
discostu105 merged 1 commit into
Dynatrace:mainfrom
szymon-nagel-dt:DAQ-28770-central-enrichment-default
Dec 4, 2026
Merged

discostu105 merged 1 commit into
Dynatrace:mainfrom
szymon-nagel-dt:DAQ-28770-central-enrichment-default

Conversation

@szymon-nagel-dt

@szymon-nagel-dt szymon-nagel-dt commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • dtctl create aws|azure|gcp monitoring now creates configs with central enrichment (useIngestEnrichmentConfig: true) unless --central-enrichment=false is passed.
  • The flag is no longer hidden, so the legacy opt-out shows up in --help.
  • This is the rollout step feat: support central cloud enrichment #442 prepared: it flips centralEnrichmentDefault and centralEnrichmentHidden in cmd/create.go. Because the value is now always sent explicitly, an explicit false still reaches the backend.
  • apply, update and enable are unchanged. The cloud integrations doc gains a short "Central enrichment" note.

Behaviour observed on real environments

Tested against the da-gcp 2.0.3 schema on dev environments:

  • The payload from dtctl create gcp monitoring carries "useIngestEnrichmentConfig": true (checked with -vv).
  • On environments in central-only mode, the backend stores useIngestEnrichmentConfig: true and ingestEnrichmentMigrationProcessed: true on every create and update, whatever the client sends (absent, true, false, null). There --central-enrichment=false has no effect; the doc note says so.
  • Environments not yet in central-only mode keep an explicit false, which is what the opt-out is for.
  • In all da-aws, da-azure and da-gcp schema versions checked, both properties are now modificationPolicy: DEFAULT, and an update that omits them is accepted. The NEVER concern from feat: support central cloud enrichment #442 no longer applies.

Verification

  • go vet ./cmd
  • go test ./cmd ./pkg/apply ./pkg/resources/awsmonitoringconfig ./pkg/resources/azuremonitoringconfig ./pkg/resources/gcpmonitoringconfig ./pkg/output ./test/stability
  • make docs-generate (no drift) and scripts/gen-docs/check_prose.py

@szymon-nagel-dt
szymon-nagel-dt requested review from a team and discostu105 as code owners November 3, 2026 08:41
@szymon-nagel-dt szymon-nagel-dt changed the title feat: default cloud monitoring configs to central enrichment feat: default cloud monitoring configs to central enrichment (DAQ-31363) Nov 3, 2026
@szymon-nagel-dt

Copy link
Copy Markdown
Contributor Author

Hi @discostu105 can you take a look at this PR?
Thanks!

`dtctl create aws|azure|gcp monitoring` now sends
useIngestEnrichmentConfig: true unless the caller passes
`--central-enrichment=false`. The flag is no longer hidden, so the
legacy opt-out is discoverable in `--help`.

This flips the two rollout switches in cmd/create.go that Dynatrace#442
introduced for exactly this step. The value is now always sent
explicitly, so an explicit false still reaches the backend instead of
being dropped as "no opinion".

apply, update and enable are unchanged: update and enable resend the
stored value, and apply sends the field only when the file sets it.
@szymon-nagel-dt
szymon-nagel-dt force-pushed the DAQ-28770-central-enrichment-default branch from 3c0a89b to c12b04d Compare December 4, 2026 11:33

@discostu105 discostu105 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. The flip is what #442 prepared, and the tests were updated correctly. The value is now always sent explicitly, so --central-enrichment=false stays a real opt-out, and unhiding the flag makes that opt-out discoverable. The environment findings in the description (schema modificationPolicy: DEFAULT, central-only environments ignoring the flag) settle the earlier risk.

One thing to keep in mind: create aws|azure|gcp monitoring and --central-enrichment are stable in docs/STABILITY.md. This change keeps the invocation the same but changes what it creates. That is intended here, but please make sure it stands out in the release notes (a short "Behaviour change" line in the squash message body is enough), so people with scripted creates are not surprised.

Nit, maybe a follow-up: on central-only environments, an explicit --central-enrichment=false is silently overridden. If the stored config comes back with useIngestEnrichmentConfig: true after the user asked for false, a one-line stderr warning would save a support question.

@discostu105
discostu105 merged commit 71d1072 into Dynatrace:main Dec 4, 2026
18 checks passed
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