-
Notifications
You must be signed in to change notification settings - Fork 95
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
Application detection rules: Multiple rules matching the same application not working #106
Comments
The impact of this extends to multiple executions of Assume 1
|
Fantastic news: The engineering team will provide a fix for the API in 1.210.x. 🥇 🚀 |
Thankyou for this issue, because I thought I was going crazy. For reference, I tried to re-use a single JSON for multiple app rules and thought it should be possible. common_detection_rules.json
Interestingly, even though 'name' is never used by this config, it cannot be omitted.
rum_rules.yaml
|
This commit adds the `owner` property to each dashboard config used in the test configuration of monaco. Since Dynatrace version 1.208+ this is needed due to a breaking change in the dashboard API. Additionally, this commit comments out integration test `TestIntegrationDoNotNormalizePathSeparatorsInUserAgentString` to prevent that this PR blocks other PRs in monaco. Interestingly, it fails just in the CI. When running it locally (against the same environments) it works just fine. The fixing of this test will happen in #121.
If you run into the problem, just add the
The API was fixed in 1.210.x. -> Closing the issue |
Describe the bug
We discovered that sadly,
monaco
doesn't support multiple application detection rules mapping to the same application. This is a result from the API implementation, which makes this use case impossible to handle correctly bymonaco
.How to reproduce
To give a concrete example, the following does not work:
Yaml configuration:
app-detection-rule-1.json:
app-detection-rule-2.json:
Log output
When trying to apply this configuration, the following error occurs:
Why is this an issue?
The API does not specify a name for an application detection rule and does not return this information in the GET call. Instead, the name of a application detection rule is generated from the application's name, thus resulting in duplicate names for the above use case. And
monaco
needs the names to be unique to work properly, because its using the config's name to identify a given configuration.Environment (please complete the following information):
Not related to any specific environment.
Expected behavior
For now, we can document that this use case is not supported in
monaco
. You need to have 1:1 relation between application detection rule and application.I'm afraid there is no proper fix in
monaco
. However, what we can do:In addition to that, I will create a bug ticket for the engineering team to extend the API.
The text was updated successfully, but these errors were encountered: