-
Notifications
You must be signed in to change notification settings - Fork 442
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
[O11y][MSSQL] Add optional mssql.query field to performance
data stream for debugging purposes
#12212
[O11y][MSSQL] Add optional mssql.query field to performance
data stream for debugging purposes
#12212
Conversation
packages/microsoft_sqlserver/data_stream/performance/manifest.yml
Outdated
Show resolved
Hide resolved
@@ -81,3 +81,6 @@ | |||
- name: memory_grants_pending | |||
type: long | |||
description: This is generated from the default pattern given for Dynamic Counter Name variable. This counter tells us how many processes are waiting for the memory to be assigned to them so they can get started. | |||
- name: query | |||
type: keyword | |||
description: Executed queries by this package. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets wait till the beats code change, This can be an array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
array won't be supported.
Error: building package failed: invalid content found in built zip package: found 1 validation error:
- file "/github_repo/harnish_repo/integrations/build/packages/microsoft_sqlserver-2.9.5.zip/data_stream/performance/fields/fields.yml" is invalid: field 0.fields.1.type: 0.fields.1.type must be one of the following: "aggregate_metric_double", "alias", "histogram", "constant_keyword", "text", "match_only_text", "keyword", "long", "integer", "short", "byte", "double", "float", "half_float", "scaled_float", "date", "date_nanos", "boolean", "binary", "integer_range", "float_range", "long_range", "double_range", "date_range", "ip_range", "group", "geo_point", "object", "ip", "nested", "flattened", "wildcard", "version", "unsigned_long"
performance
data stream for debugging purposes
🚀 Benchmarks reportTo see the full report comment with |
performance
data stream for debugging purposesperformance
data stream for debugging purposes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comments for the other PR too
- name: preserve_sql_queries | ||
required: true | ||
show_user: false | ||
title: Preserve SQL queries (debug) | ||
description: Preserve the SQL queries used. Enable for debugging purposes only. This feature becomes available in Kibana version 8.18 onwards. | ||
type: bool | ||
multi: false | ||
default: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: preserve_sql_queries | |
required: true | |
show_user: false | |
title: Preserve SQL queries (debug) | |
description: Preserve the SQL queries used. Enable for debugging purposes only. This feature becomes available in Kibana version 8.18 onwards. | |
type: bool | |
multi: false | |
default: false | |
- name: preserve_sql_queries | |
required: true | |
show_user: false | |
title: Preserve SQL Queries | |
description: Preserves SQL queries for debugging purposes. This feature is available in Elastic stack version 8.18 and later. | |
type: bool | |
multi: false | |
default: false |
tags: | ||
{{#if preserve_sql_queries}} | ||
- preserve_sql_queries | ||
{{/if}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/elastic/integrations/pull/12097/files
^^
Here we are not accepting tags from users as of now. But see this PR where because of indentation we faced issue when user input was also there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated, thanks!
@@ -81,3 +81,6 @@ | |||
- name: memory_grants_pending | |||
type: long | |||
description: This is generated from the default pattern given for Dynamic Counter Name variable. This counter tells us how many processes are waiting for the memory to be assigned to them so they can get started. | |||
- name: query | |||
type: keyword | |||
description: Executed queries by this package. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: Executed queries by this package. | |
description: The SQL queries executed. |
💚 Build Succeeded
History
|
|
Package microsoft_sqlserver - 2.10.0 containing this change is available at https://epr.elastic.co/package/microsoft_sqlserver/2.10.0/ |
…ream for debugging purposes (elastic#12212) * Remove unnecessary processor in performance data stream * add changelog entry * added debug flag that can preserve mssql.query field when enabled * Update packages/microsoft_sqlserver/data_stream/performance/manifest.yml Co-authored-by: Lalit Satapathy <69236064+lalit-satapathy@users.noreply.github.com> * update tag name * minor change in pipeline and system tests * minor change in tag description * address review comments --------- Co-authored-by: Lalit Satapathy <69236064+lalit-satapathy@users.noreply.github.com>
…ream for debugging purposes (elastic#12212) * Remove unnecessary processor in performance data stream * add changelog entry * added debug flag that can preserve mssql.query field when enabled * Update packages/microsoft_sqlserver/data_stream/performance/manifest.yml Co-authored-by: Lalit Satapathy <69236064+lalit-satapathy@users.noreply.github.com> * update tag name * minor change in pipeline and system tests * minor change in tag description * address review comments --------- Co-authored-by: Lalit Satapathy <69236064+lalit-satapathy@users.noreply.github.com>
Proposed commit message
perfromance
data stream uses the merge_results: true parameter. From this parameter, I observed that all the sql_queries results are being merged in single event and we are not receiving thesql.query
field in the response. Referpreserve_sql_queries
flag that can be used as preserve sql.query field, if it's enabled.Checklist
changelog.yml
file.Related issues
Screenshot