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

Fix incorrect Azure SQL DB server properties #7715

Merged
merged 1 commit into from Jun 24, 2020

Conversation

denzilribeiro
Copy link
Contributor

The sql_server_properties measure had a few incorrect values for Azure SQL DB
a. Number of DB's online/offline/suspect is irrelevant for a single DB and was counting master had incorrect values of 2
b. Space usage (Max/unallocated) was also set to NULL prior
c. Given all the 3 parts of this collector required adhoc queries, eliminated the unnecessarily table variable to simplify query

Required for all PRs:

  • [X ] Signed CLA.
  • Associated README.md updated.
  • [X ] Has appropriate unit tests.

The sql_server_properties measure had a few incorrect values for Azure SQL DB
a. Number of DB's online/offline/suspect is irrelevant for a single DB and was counting master had incorrect values of 2
b. Space usage (Max/unallocated) was also set to NULL prior
c. Given all the 3 parts of this collector required adhoc queries, eliminated the unnecessarily table variable to simplify query
@denzilribeiro
Copy link
Contributor Author

@Trovalo can you take quick look.

@danielnelson danielnelson added area/sqlserver feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin labels Jun 23, 2020
@Trovalo
Copy link
Collaborator

Trovalo commented Jun 24, 2020

I've tested it on on-prem and the output is the same.
The only thing I would change is some indentation in the SQL string, so if you print out the query is displays a bit more nicely. (if you want I can make a review for this)

@danielnelson danielnelson added this to the 1.15.0 milestone Jun 24, 2020
@danielnelson danielnelson merged commit 1874ab5 into influxdata:master Jun 24, 2020
rhajek pushed a commit to bonitoo-io/telegraf that referenced this pull request Jul 13, 2020
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sqlserver feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants