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

Add support for user database names with special characters for trans… #5527

Merged
merged 3 commits into from Mar 27, 2023

Conversation

ritalwar
Copy link
Contributor

@ritalwar ritalwar commented Mar 14, 2023

  • Enhancement

What does this PR do?

This PR will support mssql metrics for transaction log for userdbs with special characters.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

How to test this PR locally

Add the mssql integration.
Enable transaction_log metrics.
Add database names with special characters.
Data should come to ES without error.

Related issues

Screenshots

Screenshot 2023-03-14 at 11 35 31 AM

Screenshot 2023-03-14 at 11 35 17 AM

Screenshot 2023-03-14 at 11 34 59 AM

@ritalwar ritalwar marked this pull request as ready for review March 14, 2023 06:21
@ritalwar ritalwar requested a review from a team as a code owner March 14, 2023 06:21
@elasticmachine
Copy link

elasticmachine commented Mar 14, 2023

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-03-23T10:58:25.136+0000

  • Duration: 16 min 42 sec

Test stats 🧪

Test Results
Failed 0
Passed 19
Skipped 0
Total 19

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link

elasticmachine commented Mar 14, 2023

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (2/2) 💚
Files 100.0% (2/2) 💚
Classes 100.0% (2/2) 💚
Methods 93.333% (28/30) 👍
Lines 100.0% (1238/1238) 💚 2.959
Conditionals 100.0% (0/0) 💚

@Danouchka
Copy link

Please when can we expect this to be released ?
Thank you

@lalit-satapathy
Copy link
Collaborator

LGTM.

@muthu-mps , Please check once and it can be merged.

Copy link
Contributor

@muthu-mps muthu-mps left a comment

Choose a reason for hiding this comment

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

Can we add a description on the supported database name formats ?

@ritalwar
Copy link
Contributor Author

Can we add a description on the supported database name formats ?

I think there isn't anything we are limiting specifically in our integration for naming the databases, so ideally if mssql supports it, we should also be able to parse those names.
If in case there are any specific formats you think we should mention, please let me know.

@lalit-satapathy
Copy link
Collaborator

Can we add a description on the supported database name formats ?

I think there isn't anything we are limiting specifically in our integration for naming the databases, so ideally if mssql supports it, we should also be able to parse those names. If in case there are any specific formats you think we should mention, please let me know.

I think this PR should support all regular DB names and DB names with special character. Not sure, we need a specific documentation around it.

@muthu-mps muthu-mps self-requested a review March 27, 2023 14:05
Copy link
Contributor

@muthu-mps muthu-mps left a comment

Choose a reason for hiding this comment

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

Looks good!

@ritalwar ritalwar merged commit ebf8bcd into elastic:main Mar 27, 2023
2 checks passed
@elasticmachine
Copy link

Package microsoft_sqlserver - 1.17.0 containing this change is available at https://epr.elastic.co/search?package=microsoft_sqlserver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MSSQL support user dbs names with special characters
5 participants