xebialabs-community / xlr-dynatrace-oneagent-plugin

XL Release Integration to the Dynatrace OneAgent Server
0 stars 1 forks source link

AWS created Dynatrace Host tags not matching #2

Open wasabibob opened 5 years ago

wasabibob commented 5 years ago

AWS tags are created with prepending "[AWS]". The event posting (python code) is failing to match because of the "[]" syntax in the tag. Generated release URL: None/#/releases/Folder8229df4304854bb8b94ac111f2106e8b-Release06a6d52979ad4211b5e49c25c1784cd8

Dynartace Server URL is: https://knu19180.live.dynatrace.com

The Release ID is: Applications/Folder8229df4304854bb8b94ac111f2106e8b/Release06a6d52979ad4211b5e49c25c1784cd8

Json content is:

{"description": "All AWS resources with the tag application", "eventType": "CUSTOM_INFO", "source": "XLRelease", "attachRules": {"tagRule": {"tags": ["[AWS]application"], "meTypes": "HOST"}}, "title": null, "customProperties": {"Owner": "releaseVariables[release.owner]", "Release ID": "Applications/Folder8229df4304854bb8b94ac111f2106e8b/Release06a6d52979ad4211b5e49c25c1784cd8", "Release URL": "None/#/releases/Folder8229df4304854bb8b94ac111f2106e8b-Release06a6d52979ad4211b5e49c25c1784cd8"}}

Failed to register a Info event with Dynatrace server at https://knu19180.live.dynatrace.com

Status: 400

Response: {"error":{"code":400,"message":"Invalid attachRules object provided. No MEIdentifier do match: Matching rule: PushEventAttachRules{entityIds=null, tagRules=[TagMatchRule{meTypes=[HOST], tags=[[CONTEXTLESS][AWS]application]}]}"}}

Response headers: {'Server': 'ruxit server', 'X-RateLimit-Reset': '1564501961655000', 'Date': 'Tue, 30 Jul 2019 15:52:29 GMT', 'X-Robots-Tag': 'noindex', 'Strict-Transport-Security': 'max-age=31536000;includeSubDomains', 'X-RateLimit-Remaining': '48', 'Vary': 'Accept-Encoding', 'X-RateLimit-Limit': '50', 'Content-Type': 'application/json;charset=utf-8'}

Exception during execution:

SystemExit: 1 in Githubissues.

  • Githubissues is a development platform for aggregating issues.