Skip to content

[receiver/sqlserver] Add access methods and buffer pool metrics - #49185

Merged
atoulme merged 11 commits into
open-telemetry:mainfrom
akshays-19:sqlserver-access-methods-and-buffer-pool
Jul 2, 2026
Merged

[receiver/sqlserver] Add access methods and buffer pool metrics#49185
atoulme merged 11 commits into
open-telemetry:mainfrom
akshays-19:sqlserver-access-methods-and-buffer-pool

Conversation

@akshays-19

Copy link
Copy Markdown
Contributor

Description

Adds 7 new opt-in metrics to the sqlserverreceiver covering Access Methods and Buffer Pool Extensions. These consolidate 14 separate performance counters into attribute-based OTLP metrics, following the receiver's existing consolidation pattern (e.g., sqlserver.page.operation with an attribute).

All new metrics reuse the existing sys.dm_os_performance_counters query path — no new DMVs required.

Link to tracking issue

Fixes #49182

Testing

  • Unit tests for all 7 new metrics
  • Integration tests against SQL Server instance
  • metadata.yaml updated with metric definitions
  • Documentation updated

Documentation

Authorship

  • I, a human, wrote this pull request description myself.

Signed-off-by: akshasri <akshaysrivastava@splunk.com>
…thods-and-buffer-pool

# Conflicts:
#	receiver/sqlserverreceiver/internal/metadata/generated_metrics_test.go
@sv-splunk

Copy link
Copy Markdown
Contributor

LGTM ✅

@akshays-19
akshays-19 marked this pull request as ready for review June 23, 2026 08:45
@akshays-19
akshays-19 requested review from a team and crobert-1 as code owners June 23, 2026 08:45
@github-actions github-actions Bot added receiver/sqlserver Run Windows Enable running windows test on a PR labels Jun 23, 2026
Comment thread receiver/sqlserverreceiver/metadata.yaml Outdated
Comment thread receiver/sqlserverreceiver/metadata.yaml Outdated
Comment thread receiver/sqlserverreceiver/metadata.yaml Outdated
Comment thread receiver/sqlserverreceiver/metadata.yaml Outdated
Comment thread receiver/sqlserverreceiver/queries.go
Comment thread .chloggen/sqlserverreceiver-access-methods-and-buffer-pool.yaml
Comment thread receiver/sqlserverreceiver/metadata.yaml Outdated
Comment thread receiver/sqlserverreceiver/metadata.yaml Outdated
Comment thread receiver/sqlserverreceiver/metadata.yaml Outdated
Comment thread receiver/sqlserverreceiver/metadata.yaml Outdated
Comment thread receiver/sqlserverreceiver/metadata.yaml Outdated
Comment thread receiver/sqlserverreceiver/scraper.go Outdated

@crobert-1 crobert-1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one more nit about alphabetical order

Comment thread receiver/sqlserverreceiver/scraper.go Outdated
@crobert-1 crobert-1 added the ready to merge Code review completed; ready to merge by maintainers label Jul 1, 2026
@atoulme
atoulme merged commit 8e6fe2a into open-telemetry:main Jul 2, 2026
246 checks passed
tommyers-elastic pushed a commit to tommyers-elastic/opentelemetry-collector-contrib that referenced this pull request Jul 3, 2026
…-telemetry#49185)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Adds 7 new opt-in metrics to the sqlserverreceiver covering Access
Methods and Buffer Pool Extensions. These consolidate 14 separate
performance counters into attribute-based OTLP metrics, following the
receiver's existing consolidation pattern (e.g.,
sqlserver.page.operation with an attribute).

All new metrics reuse the existing sys.dm_os_performance_counters query
path — no new DMVs required.

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes open-telemetry#49182

<!--Describe what testing was performed and which tests were added.-->
#### Testing
- Unit tests for all 7 new metrics
- Integration tests against SQL Server instance
- metadata.yaml updated with metric definitions
- Documentation updated

<!--Describe the documentation added.-->
#### Documentation

<!--Authorship attestation. See AGENTS.md for details. AI agents must
not check this box on behalf
of the user; the human author must check it themselves before the PR is
ready for review.-->
#### Authorship

- [x] I, a human, wrote this pull request description myself.

<!--Please delete paragraphs that you did not use before submitting.-->

---------

Signed-off-by: akshasri <akshaysrivastava@splunk.com>
akhileshsingh85 pushed a commit to akhileshsingh85/opentelemetry-collector-contrib that referenced this pull request Jul 6, 2026
…-telemetry#49185)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Adds 7 new opt-in metrics to the sqlserverreceiver covering Access
Methods and Buffer Pool Extensions. These consolidate 14 separate
performance counters into attribute-based OTLP metrics, following the
receiver's existing consolidation pattern (e.g.,
sqlserver.page.operation with an attribute).

All new metrics reuse the existing sys.dm_os_performance_counters query
path — no new DMVs required.

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes open-telemetry#49182

<!--Describe what testing was performed and which tests were added.-->
#### Testing
- Unit tests for all 7 new metrics
- Integration tests against SQL Server instance
- metadata.yaml updated with metric definitions
- Documentation updated

<!--Describe the documentation added.-->
#### Documentation

<!--Authorship attestation. See AGENTS.md for details. AI agents must
not check this box on behalf
of the user; the human author must check it themselves before the PR is
ready for review.-->
#### Authorship

- [x] I, a human, wrote this pull request description myself.

<!--Please delete paragraphs that you did not use before submitting.-->

---------

Signed-off-by: akshasri <akshaysrivastava@splunk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Code review completed; ready to merge by maintainers receiver/sqlserver Run Windows Enable running windows test on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Access Methods and Buffer Pool Extensions

5 participants