This documentation has an index for AI agents at /llms.txt. A Markdown version of this page is available at https://explorer.opentelemetry.io/collector/components/contrib/sqlserverreceiver.md.

Microsoft SQL Server Receiver

OpenTelemetry Collector receiver · contrib distribution

The sqlserver receiver grabs metrics/logs about a Microsoft SQL Server instance. The receiver works by either using the Windows Performance Counters, or by directly connecting to the instance and querying it. Windows Performance Counters are only available when running on Windows.

  • Component ID: contrib-sqlserverreceiver
  • Name: sqlserverreceiver
  • Type: receiver
  • Distribution: contrib
  • Repository: opentelemetry-collector-contrib

Stability

LevelSignals
betametrics
developmentlogs

Attributes

AttributeTypeDescription
cache.statestringThe state of the cache objects.
client.addressstringHostname or address of the client.
client.portintTCP port used by the client.
database.statusstringThe current status of a database
db.namespacestringThe database name.
db.query.textstringThe text of the database query being executed.
db.system.namestringThe database management system (DBMS) product as identified by the client instrumentation.
directionstringThe direction of flow of bytes or operations.
file_typestringThe type of file being monitored.
logical_filenamestringThe logical filename of the file being monitored.
memory.poolstringThe functional area of SQL Server memory.
network.peer.addressstringIP address of the peer client.
network.peer.portintTCP port used by the peer client.
page.operationsstringThe page operation types.
page.poolstringThe type of page pool in the SQL Server buffer manager.
performance_counter.object_namestringCategory to which this counter belongs
physical_filenamestringThe physical filename of the file being monitored.
replica.directionstringThe direction of flow of bytes for replica.
server.addressstringThe network address of the server hosting the database.
server.portintThe port number on which the server is listening.
sqlserver.access.scan.typestringThe type of access method scan being performed.
sqlserver.blocking.start_timestringTimestamp of when the current blocking wait began (ISO 8601 format).
sqlserver.blocking_session_idintSession ID that is blocking the current session. 0 if none.
sqlserver.client.app.namestringName of the client application that initiated the session.
sqlserver.commandstringSQL command type being executed.
sqlserver.context_infostringContext information for the session, represented as a hexadecimal string.
sqlserver.cpu_timedoubleCPU time consumed by the query, in seconds.
sqlserver.deadlock_priorityintDeadlock priority value for the session.
sqlserver.estimated_completion_timedoubleEstimated time remaining for the request to complete, in seconds.
sqlserver.execution_countintNumber of times that the plan has been executed since it was last compiled, reported in delta value.
sqlserver.extent.operation.typestringThe type of extent allocation operation.
sqlserver.lock_timeoutdoubleLock timeout value in seconds.
sqlserver.logical_readsintNumber of logical reads (data read from cache/memory).
sqlserver.open_transaction_countintNumber of transactions currently open in the session.
sqlserver.page.allocation.typestringThe type of page allocation operation.
sqlserver.page.compression.typestringThe type of page compression operation.
sqlserver.parameterization.resultstringThe result of an auto-parameterization attempt by the SQL Server query optimizer.
sqlserver.percent_completedoublePercentage of work completed.
sqlserver.plan.guidance.resultstringWhether a SQL plan execution successfully used a matching plan guide (guided) or did not (misguided).
sqlserver.procedure_execution_countintNumber of times that the procedure has been executed since it was last compiled, reported in delta value.
sqlserver.procedure_idstringThe SQL Server ID of the stored procedure, if any
sqlserver.procedure_namestringThe name of the stored procedure, if any
sqlserver.query.last_startedstringTimestamp of when the SQL query last started executing (ISO 8601 format).
sqlserver.query.plan.creation_timestringTimestamp of when the SQL query execution plan was compiled (ISO 8601 format).
sqlserver.query_hashstringBinary hash value calculated on the query and used to identify queries with similar logic, reported in the HEX format.
sqlserver.query_planstringThe query execution plan used by the SQL Server.
sqlserver.query_plan_hashstringBinary hash value calculated on the query execution plan and used to identify similar query execution plans, reported in the HEX format.
sqlserver.query_startstringTimestamp of when the SQL query started (ISO 8601 format).
sqlserver.readsintNumber of physical reads performed by the query.
sqlserver.request_statusstringStatus of the request (e.g., running, suspended).
sqlserver.row_countintNumber of rows affected or returned by the query.
sqlserver.session.durationdoubleTotal elapsed time in seconds the session has been actively executing requests.
sqlserver.session.start_timestringTimestamp when the session was established (ISO 8601 format).
sqlserver.session_idintID of the SQL Server session.
sqlserver.session_statusstringStatus of the session (e.g., running, sleeping).
sqlserver.total_elapsed_timedoubleTotal elapsed time for completed executions of this plan, reported in delta seconds.
sqlserver.total_grant_kbintThe total amount of reserved memory grant in KB this plan received since it was compiled, reported in delta value.
sqlserver.total_logical_readsintTotal number of logical reads performed by executions of this plan since it was compiled, reported in delta value.
sqlserver.total_logical_writesintTotal number of logical writes performed by executions of this plan since it was compiled, reported in delta value.
sqlserver.total_physical_readsintTotal number of physical reads performed by executions of this plan since it was compiled, reported in delta value.
sqlserver.total_rowsintTotal number of rows returned by the query, reported in delta value.
sqlserver.total_worker_timedoubleTotal amount of CPU time that was consumed by executions of this plan since it was compiled, reported in delta seconds.
sqlserver.transaction_idintUnique ID of the active transaction.
sqlserver.transaction_isolation_levelintTransaction isolation level used in the session. Represented as numeric constant.
sqlserver.wait.resource.idstringSQL Server identifier for the locked or waited-on resource, if available.
sqlserver.wait.resource.typestringSQL Server type of the locked or waited-on resource, if available.
sqlserver.wait_resourcestringThe resource for which the session is waiting.
sqlserver.wait_timedoubleDuration in seconds the request has been waiting.
sqlserver.wait_typestringType of wait encountered by the request. Empty if none.
sqlserver.writesintNumber of writes performed by the query.
table.statestringThe state of the table.
table.statusstringThe status of the table.
tempdb.statestringThe status of the tempdb space usage.
transition.directionstringThe direction of a superlatch transition.
user.namestringLogin name associated with the SQL Server session.
wait.categorystringCategory of the reason for a wait.
wait.typestringType of the wait, view WaitTypes documentation for more information.

Data

  • JSON: /data/collector/components/contrib-sqlserverreceiver/contrib-sqlserverreceiver-3fdce87e3383.json
  • Explore: /collector/components/contrib/sqlserverreceiver