Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using entity selectors instead of just IDs to reference monitored entities #964

Open
o-farooq opened this issue Apr 20, 2023 · 1 comment
Labels
enhancement New feature or request internally-tracked We've moved this issue to the internal backlog of the core team.

Comments

@o-farooq
Copy link

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+
@o-farooq o-farooq added the bug Something isn't working label Apr 20, 2023
@UnseenWizzard UnseenWizzard added enhancement New feature or request and removed bug Something isn't working labels Apr 21, 2023
@Laubi
Copy link
Contributor

Laubi commented Apr 21, 2023

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.

@UnseenWizzard UnseenWizzard changed the title Monaco 2.0 GA - Unable to use entity selector in scope Allow using entity selectors instead of just IDs to reference monitored entities May 2, 2023
@UnseenWizzard UnseenWizzard added the internally-tracked We've moved this issue to the internal backlog of the core team. label May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request internally-tracked We've moved this issue to the internal backlog of the core team.
Projects
None yet
Development

No branches or pull requests

3 participants