Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Exclude diagnostics service sap systems #849

Conversation

arbulu89
Copy link
Contributor

@arbulu89 arbulu89 commented Mar 2, 2022

Implement the SAP diagnostics agent (DAA usually) detection. When this instance is discovered, the projection is skipped, as we don't want to handle this instance type by now. We will see what to do in the future.

The diagnostics agent instance id is computed using the /etc/machine-id as this sap instance is host specific, it is not a distributed deployment. In this case, the agent id and system id will match. Let me know if you have some better suggestion.

The instance type detection has been changed to use the Features field with regexp, as this field gives exactly the type (some types are part of the application layer).

Besides that, I have added some test.

FYI: @abravosuse

PD: I have included a small change in the templating, to unify the SAP instances table headers usage. It is here: 8c3b922
I could remove this commit in any case, but well, it doesn't almost affect. I found it ugly to see when 2 sap systems are discovered, but we won't have this situation often as we won't show diagnostics agents as SAP systems anymore

@arbulu89 arbulu89 added the bug Something isn't working label Mar 2, 2022
Copy link
Member

@nelsonkopliku nelsonkopliku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@dottorblaster dottorblaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@arbulu89 arbulu89 merged commit 810e674 into trento-project:main Mar 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

3 participants