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

@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
@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.

None yet

3 participants