{
  "attributes": {
    "cache.state": {
      "description": "The state of the cache objects.",
      "enum": [
        "in_use",
        "total"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "client.address": {
      "description": "Hostname or address of the client.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "client.port": {
      "description": "TCP port used by the client.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "cursor.state": {
      "description": "The state of the cursor.",
      "enum": [
        "active",
        "cached"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "database.status": {
      "description": "The current status of a database",
      "enum": [
        "offline",
        "online",
        "pending_recovery",
        "recovering",
        "restoring",
        "suspect"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "db.namespace": {
      "description": "The database name.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "db.query.text": {
      "description": "The text of the database query being executed.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "db.system.name": {
      "description": "The database management system (DBMS) product as identified by the client instrumentation.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "direction": {
      "description": "The direction of flow of bytes or operations.",
      "enum": [
        "read",
        "write"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "disk.io.direction": {
      "description": "The direction of disk I/O operations.",
      "enum": [
        "read",
        "write"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "file_type": {
      "description": "The type of file being monitored.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "logical_filename": {
      "description": "The logical filename of the file being monitored.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "memory.pool": {
      "description": "The functional area of SQL Server memory.",
      "enum": [
        "connection",
        "granted_workspace",
        "max_workspace",
        "optimizer",
        "sql_cache",
        "target",
        "total"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "network.peer.address": {
      "description": "IP address of the peer client.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "network.peer.port": {
      "description": "TCP port used by the peer client.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "page.operations": {
      "description": "The page operation types.",
      "enum": [
        "read",
        "write"
      ],
      "name_override": "type",
      "requirement_level": "recommended",
      "type": "string"
    },
    "page.pool": {
      "description": "The type of page pool in the SQL Server buffer manager.",
      "enum": [
        "cache",
        "database",
        "free",
        "reserved",
        "stolen",
        "target",
        "total"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "performance_counter.object_name": {
      "description": "Category to which this counter belongs",
      "requirement_level": "recommended",
      "type": "string"
    },
    "physical_filename": {
      "description": "The physical filename of the file being monitored.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "replica.direction": {
      "description": "The direction of flow of bytes for replica.",
      "enum": [
        "receive",
        "transmit"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "request.state": {
      "description": "The state of the worker request.",
      "enum": [
        "waiting"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "server.address": {
      "description": "The network address of the server hosting the database.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "server.port": {
      "description": "The port number on which the server is listening.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.access.scan.type": {
      "description": "The type of access method scan being performed.",
      "enum": [
        "free_space",
        "probe",
        "range"
      ],
      "requirement_level": "required",
      "type": "string"
    },
    "sqlserver.availability_group.name": {
      "description": "The name of the SQL Server Availability Group.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.availability_group.queue.type": {
      "description": "The type of availability group queue.",
      "enum": [
        "log_send",
        "redo"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.blocking.start_time": {
      "description": "Timestamp of when the current blocking wait began (ISO 8601 format).",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.blocking_session_id": {
      "description": "Session ID that is blocking the current session. 0 if none.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.client.app.name": {
      "description": "Name of the client application that initiated the session.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.command": {
      "description": "SQL command type being executed.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.context_info": {
      "description": "Context information for the session, represented as a hexadecimal string.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.cpu_time": {
      "description": "CPU time consumed by the query, in seconds.",
      "requirement_level": "recommended",
      "type": "double"
    },
    "sqlserver.deadlock_priority": {
      "description": "Deadlock priority value for the session.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.error.category": {
      "description": "The category of the SQL Server error.",
      "enum": [
        "db_offline",
        "info",
        "kill_connection",
        "user"
      ],
      "requirement_level": "required",
      "type": "string"
    },
    "sqlserver.estimated_completion_time": {
      "description": "Estimated time remaining for the request to complete, in seconds.",
      "requirement_level": "recommended",
      "type": "double"
    },
    "sqlserver.execution_count": {
      "description": "Number of times that the plan has been executed since it was last compiled, reported in delta value.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.extent.operation.type": {
      "description": "The type of extent allocation operation.",
      "enum": [
        "allocated",
        "deallocated"
      ],
      "requirement_level": "required",
      "type": "string"
    },
    "sqlserver.file.path.prefix": {
      "description": "The path prefix identifying the storage location of SQL Server database files.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.index.id": {
      "description": "The identifier of the index.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.lock.block.type": {
      "description": "The type of lock block tracked by the lock manager.",
      "enum": [
        "allocated",
        "blocks",
        "owner",
        "owner_allocated"
      ],
      "requirement_level": "required",
      "type": "string"
    },
    "sqlserver.lock.timeout.type": {
      "description": "The type of lock timeout being reported. `all` includes immediate (zero-wait) timeouts; `nonzero` excludes them.",
      "enum": [
        "all",
        "nonzero"
      ],
      "requirement_level": "required",
      "type": "string"
    },
    "sqlserver.lock_timeout": {
      "description": "Lock timeout value in seconds.",
      "requirement_level": "recommended",
      "type": "double"
    },
    "sqlserver.logical_reads": {
      "description": "Number of logical reads (data read from cache/memory).",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.object.name": {
      "description": "The name of the database object.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.open_transaction_count": {
      "description": "Number of transactions currently open in the session.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.page.allocation.type": {
      "description": "The type of page allocation operation.",
      "enum": [
        "allocated",
        "deallocated",
        "mixed"
      ],
      "requirement_level": "required",
      "type": "string"
    },
    "sqlserver.page.compression.type": {
      "description": "The type of page compression operation.",
      "enum": [
        "attempted",
        "succeeded"
      ],
      "requirement_level": "required",
      "type": "string"
    },
    "sqlserver.parameterization.result": {
      "description": "The result of an auto-parameterization attempt by the SQL Server query optimizer.",
      "enum": [
        "auto_attempted",
        "failed",
        "forced",
        "safe",
        "unsafe"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.percent_complete": {
      "description": "Percentage of work completed.",
      "requirement_level": "recommended",
      "type": "double"
    },
    "sqlserver.plan.guidance.result": {
      "description": "Whether a SQL plan execution successfully used a matching plan guide (guided) or did not (misguided).",
      "enum": [
        "guided",
        "misguided"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.procedure_execution_count": {
      "description": "Number of times that the procedure has been executed since it was last compiled, reported in delta value.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.procedure_id": {
      "description": "The SQL Server ID of the stored procedure, if any",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.procedure_name": {
      "description": "The name of the stored procedure, if any",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.query.last_started": {
      "description": "Timestamp of when the SQL query last started executing (ISO 8601 format).",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.query.plan.creation_time": {
      "description": "Timestamp of when the SQL query execution plan was compiled (ISO 8601 format).",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.query_hash": {
      "description": "Binary hash value calculated on the query and used to identify queries with similar logic, reported in the HEX format.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.query_plan": {
      "description": "The query execution plan used by the SQL Server.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.query_plan_hash": {
      "description": "Binary hash value calculated on the query execution plan and used to identify similar query execution plans, reported in the HEX format.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.query_start": {
      "description": "Timestamp of when the SQL query started (ISO 8601 format).",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.reads": {
      "description": "Number of physical reads performed by the query.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.replica.name": {
      "description": "The name of the SQL Server Availability Group replica.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.request_status": {
      "description": "Status of the request (e.g., running, suspended).",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.row_count": {
      "description": "Number of rows affected or returned by the query.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.schema.name": {
      "description": "The name of the database schema.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.session.duration": {
      "description": "Total elapsed time in seconds the session has been actively executing requests.",
      "requirement_level": "recommended",
      "type": "double"
    },
    "sqlserver.session.start_time": {
      "description": "Timestamp when the session was established (ISO 8601 format).",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.session_id": {
      "description": "ID of the SQL Server session.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.session_status": {
      "description": "Status of the session (e.g., running, sleeping).",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.total_elapsed_time": {
      "description": "Total elapsed time for completed executions of this plan, reported in delta seconds.",
      "requirement_level": "recommended",
      "type": "double"
    },
    "sqlserver.total_grant_kb": {
      "description": "The total amount of reserved memory grant in KB this plan received since it was compiled, reported in delta value.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.total_logical_reads": {
      "description": "Total number of logical reads performed by executions of this plan since it was compiled, reported in delta value.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.total_logical_writes": {
      "description": "Total number of logical writes performed by executions of this plan since it was compiled, reported in delta value.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.total_physical_reads": {
      "description": "Total number of physical reads performed by executions of this plan since it was compiled, reported in delta value.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.total_rows": {
      "description": "Total number of rows returned by the query, reported in delta value.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.total_worker_time": {
      "description": "Total amount of CPU time that was consumed by executions of this plan since it was compiled, reported in delta seconds.",
      "requirement_level": "recommended",
      "type": "double"
    },
    "sqlserver.transaction_id": {
      "description": "Unique ID of the active transaction.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.transaction_isolation_level": {
      "description": "Transaction isolation level used in the session. Represented as numeric constant.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "sqlserver.wait.resource.id": {
      "description": "SQL Server identifier for the locked or waited-on resource, if available.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.wait.resource.type": {
      "description": "SQL Server type of the locked or waited-on resource, if available.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.wait_resource": {
      "description": "The resource for which the session is waiting.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.wait_time": {
      "description": "Duration in seconds the request has been waiting.",
      "requirement_level": "recommended",
      "type": "double"
    },
    "sqlserver.wait_type": {
      "description": "Type of wait encountered by the request. Empty if none.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "sqlserver.writes": {
      "description": "Number of writes performed by the query.",
      "requirement_level": "recommended",
      "type": "int"
    },
    "system.memory.state": {
      "description": "The state of the physical memory on the host.",
      "enum": [
        "free",
        "used"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "table.state": {
      "description": "The state of the table.",
      "enum": [
        "active",
        "inactive"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "table.status": {
      "description": "The status of the table.",
      "enum": [
        "permanent",
        "temporary"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "task.result": {
      "description": "The result of the task activation.",
      "enum": [
        "aborted",
        "started"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "task.state": {
      "description": "The state of the task.",
      "enum": [
        "limit_reached",
        "running"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "tempdb.state": {
      "description": "The status of the tempdb space usage.",
      "enum": [
        "free",
        "used"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "transition.direction": {
      "description": "The direction of a superlatch transition.",
      "enum": [
        "demotion",
        "promotion"
      ],
      "requirement_level": "recommended",
      "type": "string"
    },
    "user.name": {
      "description": "Login name associated with the SQL Server session.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "wait.category": {
      "description": "Category of the reason for a wait.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "wait.type": {
      "description": "Type of the wait, view [WaitTypes documentation](https://learn.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-os-wait-stats-transact-sql?view=sql-server-ver16#WaitTypes) for more information.",
      "requirement_level": "recommended",
      "type": "string"
    },
    "worker.state": {
      "description": "The state of the worker thread.",
      "enum": [
        "active",
        "available",
        "maximum",
        "waiting_for_cpu"
      ],
      "requirement_level": "recommended",
      "type": "string"
    }
  },
  "description": "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.",
  "display_name": "Microsoft SQL Server Receiver",
  "distribution": "contrib",
  "ecosystem": "collector",
  "feature_gates": [
    {
      "description": "When enabled, the server.address and server.port resource attributes are removed from metrics.",
      "from_version": "v0.129.0",
      "id": "receiver.sqlserver.RemoveServerResourceAttribute",
      "reference_url": "https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/40141",
      "stage": "alpha"
    }
  ],
  "id": "contrib-sqlserverreceiver",
  "markdown_hash": "86eaaea1f28e",
  "metrics": {
    "sqlserver.access.scan.rate": {
      "attributes": [
        "sqlserver.access.scan.type"
      ],
      "description": "Rate of access method scans.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{scan}/s"
    },
    "sqlserver.attention.rate": {
      "attributes": [],
      "description": "Number of SQL attentions (client cancellation interrupts) received per second.",
      "enabled": false,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{attentions}/s"
    },
    "sqlserver.availability_group.database_replica.queue.rate": {
      "attributes": [
        "sqlserver.availability_group.name",
        "sqlserver.availability_group.queue.type",
        "sqlserver.replica.name"
      ],
      "description": "Rate at which log data is being sent or redone on a database replica, broken down by queue type (log_send for primary-to-secondary transmission, redo for applying log records on the secondary).",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server and the instance has Always On Availability Groups enabled.",
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "By/s"
    },
    "sqlserver.availability_group.database_replica.queue.size": {
      "attributes": [
        "sqlserver.availability_group.name",
        "sqlserver.availability_group.queue.type",
        "sqlserver.replica.name"
      ],
      "description": "Amount of log data waiting to be processed on a database replica, broken down by queue type (log_send for data not yet sent to the secondary, redo for data received but not yet applied).",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server and the instance has Always On Availability Groups enabled.",
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "By"
    },
    "sqlserver.availability_group.database_replica.secondary_lag": {
      "attributes": [
        "sqlserver.availability_group.name",
        "sqlserver.replica.name"
      ],
      "description": "Number of seconds the secondary replica is lagging behind the primary replica, measured as the time between the most recent hardened log block on the primary and on the secondary.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server and the instance has Always On Availability Groups enabled.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "s"
    },
    "sqlserver.batch.request.rate": {
      "description": "Number of batch requests received by SQL Server.",
      "enabled": true,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{requests}/s"
    },
    "sqlserver.batch.sql_compilation.rate": {
      "description": "Number of SQL compilations needed.",
      "enabled": true,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{compilations}/s"
    },
    "sqlserver.batch.sql_recompilation.rate": {
      "description": "Number of SQL recompilations needed.",
      "enabled": true,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{compilations}/s"
    },
    "sqlserver.clr.execution.time": {
      "attributes": [],
      "description": "Total time spent executing in the CLR. Only non-zero when CLR integration is enabled and CLR code has been executed.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "monotonic": true,
        "value_type": "double"
      },
      "unit": "s"
    },
    "sqlserver.computer.uptime": {
      "description": "Computer uptime.",
      "enabled": false,
      "gauge": {
        "input_type": "string",
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{seconds}"
    },
    "sqlserver.connection.reset.rate": {
      "attributes": [],
      "description": "Number of logical connections reset per second.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{connection}/s"
    },
    "sqlserver.cpu.count": {
      "description": "Number of CPUs.",
      "enabled": false,
      "gauge": {
        "input_type": "string",
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{CPUs}"
    },
    "sqlserver.cpu.utilization": {
      "attributes": [],
      "description": "System-wide CPU utilization on the host that SQL Server is running on, expressed as a fraction between 0 and 1.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "1"
    },
    "sqlserver.cursor.count": {
      "attributes": [
        "cursor.state"
      ],
      "description": "Number of cursors by state.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{cursor}"
    },
    "sqlserver.cursor.memory.usage": {
      "attributes": [],
      "description": "Memory used by cursors.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "By"
    },
    "sqlserver.cursor.plan.count": {
      "attributes": [],
      "description": "Number of active cursor plans.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{plan}"
    },
    "sqlserver.cursor.request.rate": {
      "attributes": [],
      "description": "Rate of cursor requests per second.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{request}/s"
    },
    "sqlserver.database.backup_or_restore.rate": {
      "attributes": [],
      "description": "Total number of backups/restores.",
      "enabled": false,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{backups_or_restores}/s"
    },
    "sqlserver.database.count": {
      "attributes": [
        "database.status"
      ],
      "description": "The number of databases",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "input_type": "string",
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{databases}"
    },
    "sqlserver.database.execution.errors": {
      "attributes": [],
      "description": "Number of execution errors.",
      "enabled": false,
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{errors}"
    },
    "sqlserver.database.full_scan.rate": {
      "attributes": [],
      "description": "The number of unrestricted full table or index scans.",
      "enabled": false,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{scans}/s"
    },
    "sqlserver.database.io": {
      "attributes": [
        "direction",
        "file_type",
        "logical_filename",
        "physical_filename"
      ],
      "description": "The number of bytes of I/O on this file.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "input_type": "string",
        "monotonic": true,
        "value_type": "int"
      },
      "unit": "By"
    },
    "sqlserver.database.latency": {
      "attributes": [
        "direction",
        "file_type",
        "logical_filename",
        "physical_filename"
      ],
      "description": "Total time that the users waited for I/O issued on this file.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "monotonic": true,
        "value_type": "double"
      },
      "unit": "s"
    },
    "sqlserver.database.operations": {
      "attributes": [
        "direction",
        "file_type",
        "logical_filename",
        "physical_filename"
      ],
      "description": "The number of operations issued on the file.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "input_type": "string",
        "monotonic": true,
        "value_type": "int"
      },
      "unit": "{operations}"
    },
    "sqlserver.database.tempdb.space": {
      "attributes": [
        "tempdb.state"
      ],
      "description": "Total free space in temporary DB.",
      "enabled": false,
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "monotonic": false,
        "value_type": "int"
      },
      "unit": "kBy"
    },
    "sqlserver.database.tempdb.version_store.size": {
      "attributes": [],
      "description": "TempDB version store size.",
      "enabled": false,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "kBy"
    },
    "sqlserver.deadlock.rate": {
      "attributes": [],
      "description": "Total number of deadlocks.",
      "enabled": false,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{deadlocks}/s"
    },
    "sqlserver.disk.io": {
      "attributes": [
        "disk.io.direction",
        "sqlserver.file.path.prefix"
      ],
      "description": "Cumulative bytes transferred to or from files backing SQL Server databases, per I/O direction. Counters reset when the file becomes unavailable (detached, taken offline, or database restart).",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server. Only covers I/O for SQL Server database files, not total host disk I/O.",
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "monotonic": true,
        "value_type": "int"
      },
      "unit": "By"
    },
    "sqlserver.disk.operations": {
      "attributes": [
        "disk.io.direction",
        "sqlserver.file.path.prefix"
      ],
      "description": "Cumulative I/O operation count on files backing SQL Server databases, per I/O direction. Counters reset when the file becomes unavailable (detached, taken offline, or database restart).",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server. Only covers I/O for SQL Server database files, not total host disk I/O.",
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "monotonic": true,
        "value_type": "int"
      },
      "unit": "{operation}"
    },
    "sqlserver.error.rate": {
      "attributes": [
        "sqlserver.error.category"
      ],
      "description": "Number of errors raised per second.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{error}/s"
    },
    "sqlserver.extent.operation.rate": {
      "attributes": [
        "sqlserver.extent.operation.type"
      ],
      "description": "Rate of extent operations.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{extent}/s"
    },
    "sqlserver.ghost_record.skipped.rate": {
      "attributes": [],
      "description": "Rate of ghosted records skipped during scans.",
      "enabled": false,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{record}/s"
    },
    "sqlserver.host.memory.limit": {
      "attributes": [],
      "description": "Total physical memory available to SQL Server on the host.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "By"
    },
    "sqlserver.host.memory.usage": {
      "attributes": [
        "system.memory.state"
      ],
      "description": "Physical memory usage available to SQL Server on the host, broken down by state.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "By"
    },
    "sqlserver.index.fragmentation": {
      "attributes": [
        "db.namespace",
        "sqlserver.index.id",
        "sqlserver.object.name",
        "sqlserver.schema.name"
      ],
      "description": "Average fragmentation percentage of the index.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "%"
    },
    "sqlserver.index.page.count": {
      "attributes": [
        "db.namespace",
        "sqlserver.index.id",
        "sqlserver.object.name",
        "sqlserver.schema.name"
      ],
      "description": "Number of pages in the index.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "input_type": "string",
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{page}"
    },
    "sqlserver.index.page.utilization": {
      "attributes": [
        "db.namespace",
        "sqlserver.index.id",
        "sqlserver.object.name",
        "sqlserver.schema.name"
      ],
      "description": "Average percentage of available data storage space used in all pages of the index.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "%"
    },
    "sqlserver.index.record.count": {
      "attributes": [
        "db.namespace",
        "sqlserver.index.id",
        "sqlserver.object.name",
        "sqlserver.schema.name"
      ],
      "description": "Total number of records in the index.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "input_type": "string",
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{record}"
    },
    "sqlserver.index.search.rate": {
      "attributes": [],
      "description": "Total number of index searches.",
      "enabled": false,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{searches}/s"
    },
    "sqlserver.index.size": {
      "attributes": [
        "db.namespace",
        "sqlserver.index.id",
        "sqlserver.object.name",
        "sqlserver.schema.name"
      ],
      "description": "Total size of the index.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "input_type": "string",
        "value_type": "int"
      },
      "stability": "development",
      "unit": "By"
    },
    "sqlserver.latch.superlatch.count": {
      "attributes": [],
      "description": "Number of superlatches currently active.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{superlatch}"
    },
    "sqlserver.latch.superlatch.transition.rate": {
      "attributes": [
        "transition.direction"
      ],
      "description": "Rate of superlatch promotions or demotions.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{transition}/s"
    },
    "sqlserver.latch.wait.rate": {
      "attributes": [],
      "description": "Number of latch waits per second.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{wait}/s"
    },
    "sqlserver.latch.wait_time.avg": {
      "attributes": [],
      "description": "Average latch wait time.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "s"
    },
    "sqlserver.latch.wait_time.total": {
      "attributes": [],
      "description": "Total latch wait time.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "monotonic": true,
        "value_type": "double"
      },
      "unit": "s"
    },
    "sqlserver.lock.block.count": {
      "attributes": [
        "sqlserver.lock.block.type"
      ],
      "description": "Number of lock blocks tracked by the lock manager.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{block}"
    },
    "sqlserver.lock.escalation.rate": {
      "attributes": [],
      "description": "Number of lock escalations per second (locks on a table escalated to a larger granularity).",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{escalation}/s"
    },
    "sqlserver.lock.memory": {
      "attributes": [],
      "description": "Total amount of memory used for locks.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "By"
    },
    "sqlserver.lock.request.rate": {
      "attributes": [],
      "description": "Number of new locks and lock conversions per second requested from the lock manager.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{request}/s"
    },
    "sqlserver.lock.timeout.rate": {
      "attributes": [
        "sqlserver.lock.timeout.type"
      ],
      "description": "Number of lock timeouts per second.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{timeout}/s"
    },
    "sqlserver.lock.wait.count": {
      "description": "Cumulative count of lock waits that occurred.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "monotonic": true,
        "value_type": "int"
      },
      "unit": "{wait}"
    },
    "sqlserver.lock.wait.rate": {
      "description": "Number of lock requests resulting in a wait.",
      "enabled": true,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{requests}/s"
    },
    "sqlserver.lock.wait_time.avg": {
      "description": "Average wait time for all lock requests that had to wait.",
      "enabled": true,
      "extended_documentation": "This metric is only available when running on Windows.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "ms"
    },
    "sqlserver.lock.wait_time.total": {
      "attributes": [],
      "description": "Total wait time in seconds for locks since the last server restart.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "monotonic": true,
        "value_type": "double"
      },
      "unit": "s"
    },
    "sqlserver.login.rate": {
      "attributes": [],
      "description": "Total number of logins.",
      "enabled": false,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{logins}/s"
    },
    "sqlserver.logout.rate": {
      "attributes": [],
      "description": "Total number of logouts.",
      "enabled": false,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{logouts}/s"
    },
    "sqlserver.memory.area": {
      "attributes": [
        "memory.pool"
      ],
      "description": "Amount of memory used by the SQL Server memory pool.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "By"
    },
    "sqlserver.memory.cache.object.count": {
      "attributes": [
        "cache.state"
      ],
      "description": "Number of cache objects in the SQL Server cache.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{object}"
    },
    "sqlserver.memory.grants.pending.count": {
      "attributes": [],
      "description": "Total number of memory grants pending.",
      "enabled": false,
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "monotonic": false,
        "value_type": "int"
      },
      "unit": "{grants}"
    },
    "sqlserver.memory.page.count": {
      "attributes": [
        "page.pool"
      ],
      "description": "Number of pages in the SQL Server buffer pool.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{page}"
    },
    "sqlserver.memory.usage": {
      "attributes": [],
      "description": "Total memory in use.",
      "enabled": false,
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "monotonic": false,
        "value_type": "double"
      },
      "unit": "kBy"
    },
    "sqlserver.os.wait.duration": {
      "attributes": [
        "wait.category",
        "wait.type"
      ],
      "description": "Total wait time for this wait type",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "monotonic": true,
        "value_type": "double"
      },
      "unit": "s"
    },
    "sqlserver.page.allocation.rate": {
      "attributes": [
        "sqlserver.page.allocation.type"
      ],
      "description": "Rate of page allocation operations.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{page}/s"
    },
    "sqlserver.page.buffer_cache.free_list.stalls.rate": {
      "attributes": [],
      "description": "Number of free list stalls.",
      "enabled": false,
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{stalls}/s"
    },
    "sqlserver.page.buffer_cache.hit_ratio": {
      "description": "Pages found in the buffer pool without having to read from disk.",
      "enabled": true,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "%"
    },
    "sqlserver.page.checkpoint.flush.rate": {
      "description": "Number of pages flushed by operations requiring dirty pages to be flushed.",
      "enabled": true,
      "extended_documentation": "This metric is only available when running on Windows.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{pages}/s"
    },
    "sqlserver.page.compression.rate": {
      "attributes": [
        "sqlserver.page.compression.type"
      ],
      "description": "Rate of page compression operations.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{page}/s"
    },
    "sqlserver.page.lazy_write.rate": {
      "description": "Number of lazy writes moving dirty pages to disk.",
      "enabled": true,
      "extended_documentation": "This metric is only available when running on Windows.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{writes}/s"
    },
    "sqlserver.page.life_expectancy": {
      "attributes": [
        "performance_counter.object_name"
      ],
      "description": "Time a page will stay in the buffer pool.",
      "enabled": true,
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "s"
    },
    "sqlserver.page.lookup.rate": {
      "attributes": [],
      "description": "Total number of page lookups.",
      "enabled": false,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{lookups}/s"
    },
    "sqlserver.page.operation.rate": {
      "attributes": [
        "page.operations"
      ],
      "description": "Number of physical database page operations issued.",
      "enabled": true,
      "extended_documentation": "This metric is only available when running on Windows.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{operations}/s"
    },
    "sqlserver.page.read_ahead.rate": {
      "attributes": [],
      "description": "Rate of pages read from disk by the read-ahead manager.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{page}/s"
    },
    "sqlserver.page.split.rate": {
      "description": "Number of pages split as a result of overflowing index pages.",
      "enabled": true,
      "extended_documentation": "This metric is only available when running on Windows.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{pages}/s"
    },
    "sqlserver.parameterization.rate": {
      "attributes": [
        "sqlserver.parameterization.result"
      ],
      "description": "Rate of auto-parameterization activity, broken down by result.",
      "enabled": false,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{params}/s"
    },
    "sqlserver.plan.execution.rate": {
      "attributes": [
        "sqlserver.plan.guidance.result"
      ],
      "description": "Rate of plan executions, classified by plan guide result.",
      "enabled": false,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{executions}/s"
    },
    "sqlserver.processes.blocked": {
      "attributes": [],
      "description": "The number of processes that are currently blocked",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "input_type": "string",
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{processes}"
    },
    "sqlserver.recompilation.ratio": {
      "attributes": [],
      "description": "Ratio of SQL recompilations to compilations, expressed as a percentage.",
      "enabled": false,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "%"
    },
    "sqlserver.replica.data.rate": {
      "attributes": [
        "replica.direction"
      ],
      "description": "Throughput rate of replica data.",
      "enabled": false,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "By/s"
    },
    "sqlserver.resource_pool.disk.operations": {
      "attributes": [
        "direction"
      ],
      "description": "The rate of operations issued.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{operations}/s"
    },
    "sqlserver.resource_pool.disk.throttled.read.rate": {
      "attributes": [],
      "description": "The number of read operations that were throttled in the last second",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "input_type": "string",
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{reads}/s"
    },
    "sqlserver.resource_pool.disk.throttled.write.rate": {
      "attributes": [],
      "description": "The number of write operations that were throttled in the last second",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "input_type": "string",
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{writes}/s"
    },
    "sqlserver.scan_point.revalidation.rate": {
      "attributes": [],
      "description": "Rate at which scan points needed to be revalidated.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{revalidate}/s"
    },
    "sqlserver.stored_procedure.invocation.rate": {
      "attributes": [],
      "description": "Rate of Service Broker activated stored procedure invocations per second.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{invocation}/s"
    },
    "sqlserver.table.count": {
      "attributes": [
        "table.state",
        "table.status"
      ],
      "description": "The number of tables.",
      "enabled": false,
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "monotonic": false,
        "value_type": "int"
      },
      "unit": "{tables}"
    },
    "sqlserver.task.count": {
      "attributes": [
        "task.state"
      ],
      "description": "Number of Service Broker activation tasks by state.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{task}"
    },
    "sqlserver.task.rate": {
      "attributes": [
        "task.result"
      ],
      "description": "Rate of Service Broker activation tasks by type per second.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{task}/s"
    },
    "sqlserver.transaction.delay": {
      "attributes": [],
      "description": "Time consumed in transaction delays.",
      "enabled": false,
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "monotonic": false,
        "value_type": "double"
      },
      "unit": "ms"
    },
    "sqlserver.transaction.mirror_write.rate": {
      "attributes": [],
      "description": "Total number of mirror write transactions.",
      "enabled": false,
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{transactions}/s"
    },
    "sqlserver.transaction.rate": {
      "description": "Number of transactions started for the database (not including XTP-only transactions).",
      "enabled": true,
      "extended_documentation": "This metric is only available when running on Windows.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{transactions}/s"
    },
    "sqlserver.transaction.write.rate": {
      "description": "Number of transactions that wrote to the database and committed.",
      "enabled": true,
      "extended_documentation": "This metric is only available when running on Windows.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{transactions}/s"
    },
    "sqlserver.transaction_log.flush.data.rate": {
      "description": "Total number of log bytes flushed.",
      "enabled": true,
      "extended_documentation": "This metric is only available when running on Windows.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "By/s"
    },
    "sqlserver.transaction_log.flush.rate": {
      "description": "Number of log flushes.",
      "enabled": true,
      "extended_documentation": "This metric is only available when running on Windows.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{flushes}/s"
    },
    "sqlserver.transaction_log.flush.wait.rate": {
      "description": "Number of commits waiting for a transaction log flush.",
      "enabled": true,
      "extended_documentation": "This metric is only available when running on Windows.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "{commits}/s"
    },
    "sqlserver.transaction_log.growth.count": {
      "description": "Total number of transaction log expansions for a database.",
      "enabled": true,
      "extended_documentation": "This metric is only available when running on Windows.",
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "monotonic": true,
        "value_type": "int"
      },
      "unit": "{growths}"
    },
    "sqlserver.transaction_log.shrink.count": {
      "description": "Total number of transaction log shrinks for a database.",
      "enabled": true,
      "extended_documentation": "This metric is only available when running on Windows.",
      "stability": "development",
      "sum": {
        "aggregation_temporality": "cumulative",
        "monotonic": true,
        "value_type": "int"
      },
      "unit": "{shrinks}"
    },
    "sqlserver.transaction_log.usage": {
      "description": "Percent of transaction log space used.",
      "enabled": true,
      "extended_documentation": "This metric is only available when running on Windows.",
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "%"
    },
    "sqlserver.user.connection.count": {
      "description": "Number of users connected to the SQL Server.",
      "enabled": true,
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{connections}"
    },
    "sqlserver.worker.request.count": {
      "attributes": [
        "request.state"
      ],
      "description": "Number of worker requests by state.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{request}"
    },
    "sqlserver.worker.thread.count": {
      "attributes": [
        "worker.state"
      ],
      "description": "Number of worker threads by state.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "int"
      },
      "stability": "development",
      "unit": "{thread}"
    },
    "sqlserver.worktable.cache.hit_ratio": {
      "attributes": [],
      "description": "Fraction of worktables that did not require initialization because they were retrieved from the worktable cache.",
      "enabled": false,
      "extended_documentation": "This metric is only available when the receiver is configured to directly connect to SQL Server.",
      "gauge": {
        "value_type": "double"
      },
      "stability": "development",
      "unit": "1"
    }
  },
  "name": "sqlserverreceiver",
  "repository": "opentelemetry-collector-contrib",
  "status": {
    "class": "receiver",
    "codeowners": {
      "active": [
        "sincejune",
        "crobert-1",
        "sv-splunk",
        "ebrdarSplunk",
        "XSAM",
        "akshays-19",
        "splunk-shanu"
      ],
      "emeritus": [
        "StefanKurek"
      ],
      "seeking_new": true
    },
    "distributions": [
      "contrib"
    ],
    "stability": {
      "beta": [
        "metrics"
      ],
      "development": [
        "logs"
      ]
    }
  },
  "type": "receiver"
}