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

[receiver\sqlserver] Fix SQL Server metrics to have int type where appropriate #9691

Merged
merged 1 commit into from
May 3, 2022

Conversation

StefanKurek
Copy link
Contributor

Description:
Some of the metrics that this receiver collects are only ever integers even though they are currently marked as doubles.

This PR changes the following metrics from double type to int:
sqlserver.transaction_log.usage
sqlserver.transaction_log.shrink.count
sqlserver.transaction_log.growth.count
sqlserver.page.life_expectancy
sqlserver.user.connection.count

Issue: #9601

Testing: Manually ran and verified that changed metrics came back as integers instead of doubles.

Documentation: Updated documentation to reflect metric changes

@StefanKurek StefanKurek requested a review from a team May 3, 2022 05:09
@StefanKurek StefanKurek requested a review from djaglowski as a code owner May 3, 2022 05:09
@StefanKurek StefanKurek force-pushed the sqlserver_metric_types branch from 2e30c14 to 58c5c2e Compare May 3, 2022 13:12
@djaglowski
Copy link
Member

@StefanKurek, please rebase. #9694 should resolve the issue.

Change the following metrics from double type to int:
sqlserver.transaction_log.usage
sqlserver.transaction_log.shrink.count
sqlserver.transaction_log.growth.count
sqlserver.page.life_expectancy
sqlserver.user.connection.count
@StefanKurek StefanKurek force-pushed the sqlserver_metric_types branch from 58c5c2e to 4d1fe32 Compare May 3, 2022 17:02
@djaglowski djaglowski merged commit 4ee1594 into open-telemetry:main May 3, 2022
djaglowski pushed a commit to djaglowski/opentelemetry-collector-contrib that referenced this pull request May 10, 2022
…-telemetry#9691)

Change the following metrics from double type to int:
sqlserver.transaction_log.usage
sqlserver.transaction_log.shrink.count
sqlserver.transaction_log.growth.count
sqlserver.page.life_expectancy
sqlserver.user.connection.count
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.

3 participants