Repository navigation
feat: default cloud monitoring configs to central enrichment (DAQ-31363) - #750
Conversation
|
Hi @discostu105 can you take a look at this PR? |
`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.
3c0a89b to
c12b04d
Compare
discostu105
left a comment
There was a problem hiding this comment.
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.
Summary
dtctl create aws|azure|gcp monitoringnow creates configs with central enrichment (useIngestEnrichmentConfig: true) unless--central-enrichment=falseis passed.--help.centralEnrichmentDefaultandcentralEnrichmentHiddenincmd/create.go. Because the value is now always sent explicitly, an explicitfalsestill reaches the backend.apply,updateandenableare unchanged. The cloud integrations doc gains a short "Central enrichment" note.Behaviour observed on real environments
Tested against the
da-gcp2.0.3 schema on dev environments:dtctl create gcp monitoringcarries"useIngestEnrichmentConfig": true(checked with-vv).useIngestEnrichmentConfig: trueandingestEnrichmentMigrationProcessed: trueon every create and update, whatever the client sends (absent,true,false,null). There--central-enrichment=falsehas no effect; the doc note says so.false, which is what the opt-out is for.da-aws,da-azureandda-gcpschema versions checked, both properties are nowmodificationPolicy: DEFAULT, and an update that omits them is accepted. TheNEVERconcern from feat: support central cloud enrichment #442 no longer applies.Verification
go vet ./cmdgo test ./cmd ./pkg/apply ./pkg/resources/awsmonitoringconfig ./pkg/resources/azuremonitoringconfig ./pkg/resources/gcpmonitoringconfig ./pkg/output ./test/stabilitymake docs-generate(no drift) andscripts/gen-docs/check_prose.py