-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 column measurement_db_type to output of all queries #8464
Conversation
This column is used to distinguish between outputs of queries that have the same value in column [measurement], such as sqlAzureDBResourceStats and sqlAzureMIResourceStats.
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.
Looks fine to me. @Trovalo - any objections to this
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.
Realized that DatabaseType won't always exist if someone isn't using it in the config file ( aka are using the older V2/V1 queries). May have to check if it is configured in conf file.
@denzilribeiro I see no problem in adding this. |
But where it was being added was when results were being sent , appending a tag to all result sets which won't be conditional at this point. |
Sorry I didn't notice that, in any case it's fine to me. If we choose this way, adding a check to ensure that there is a valid value seems reasonable to me, otherwise we could end up with an empty tag, which is not that handy to query |
I added a check to ensure that the new column is only added when DatabaseType is not empty. |
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.
Looks fine to me, @denzilribeiro anything else to add?
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.
Looks good to me
Looks like there is nothing else to be done here. @ssoroka can you please merge it? |
Required for all PRs:
This column is used to distinguish between outputs of queries that have the same value in column [measurement], such as sqlAzureDBResourceStats and sqlAzureMIResourceStats.