Allow using entity selectors instead of just IDs to reference monitored entities
o-farooq opened this issue · 1 comments
Describe the bug
In Monaco 2.0.0-rc.4 I could use entity selector in scope , but in 2.0.0-rc.6+ and GA it throws a 404 error
How to reproduce
Sample Yaml config , have used simple entity selector for example
configs:
- id: servicea-keyrequests
type:
settings:
schema: builtin:settings.subscriptions.service
schemaVersion: 0.1.7
scope: '[{"type":"ENTITY_ID", "operator": "EQUALS", "value": "SERVICE-ABCD"}]'
earlier it was creating keyrequest with the right scope , but now it complains with following error
failed to deploy config cdx:builtin:settings.subscriptions.service:trader-core-keyrequests: failed to upsert dynatrace obj: failed to upsert config "servicea-keyrequests" after 3 retries: (HTTP 404)! Response was: {"error":{"code":404,"message":"Scope '[{\\\"type\\\":\\\"ENTITY_ID\\\", \\\"operator\\\": \\\"EQUALS\\\", \\\"value\\\": \\\"SERVICE-ABCD\\\"}]' not found"}}
Expected behavior
Entity selector can be used in scope
Log output
failed to deploy config cdx:builtin:settings.subscriptions.service:trader-core-keyrequests: failed to upsert dynatrace obj: failed to upsert config "servicea-keyrequests" after 3 retries: (HTTP 404)! Response was: {"error":{"code":404,"message":"Scope '[{\\\"type\\\":\\\"ENTITY_ID\\\", \\\"operator\\\": \\\"EQUALS\\\", \\\"value\\\": \\\"SERVICE-ABCD\\\"}]' not found"}}
Environment (please complete the following information):
- OS: Win 11 WSL
- Tool version: 2.0.0 / 2.0.0-rc.6+
Hi @o-farooq, thanks for reaching out.
This feature is currently not supported by Monaco, and to my knowledge, this should never have worked.
I made sure and checked out the 2.0.0-rc4 build, and no, I am not able to deploy a config as you have it above.
Nevertheless, this feature can be valuable for more users, so we take it in as a possible enhancement for Monaco.