config:
[[inputs.sqlserver]]
servers = [
“Server=Localhost;Integrated Security=SSPI;app name=telegraf;protocol=lpc;log=1”
Errors:
2025-08-28T16:23:40Z E! [inputs.sqlserver] Error in plugin: query SQLServerVolumeSpace failed for server: LOCALHOST and database: with Error: No protocol handler is available for protocol: ‘lpc’
2025-08-28T16:23:40Z E! [inputs.sqlserver] Error in plugin: query SQLServerPerformanceCounters failed for server: LOCALHOST and database: with Error: No protocol handler is available for protocol: ‘lpc’
2025-08-28T16:23:40Z E! [inputs.sqlserver] Error in plugin: query SQLServerAvailabilityReplicaStates failed for server: LOCALHOST and database: with Error: No protocol handler is available for protocol: ‘lpc’
2025-08-28T16:23:40Z E! [inputs.sqlserver] Error in plugin: query SQLServerMemoryClerks failed for server: LOCALHOST and database: with Error: No protocol handler is available for protocol: ‘lpc’
2025-08-28T16:23:40Z E! [inputs.sqlserver] Error in plugin: query SQLServerPersistentVersionStore failed for server: LOCALHOST and database: with Error: No protocol handler is available for protocol: ‘lpc’
2025-08-28T16:23:40Z E! [inputs.sqlserver] Error in plugin: query SQLServerDatabaseReplicaStates failed for server: LOCALHOST and database: with Error: No protocol handler is available for protocol: ‘lpc’
2025-08-28T16:23:40Z E! [inputs.sqlserver] Error in plugin: query SQLServerProperties failed for server: LOCALHOST and database: with Error: No protocol handler is available for protocol: ‘lpc’
2025-08-28T16:23:40Z E! [inputs.sqlserver] Error in plugin: query SQLServerDatabaseIO failed for server: LOCALHOST and database: with Error: No protocol handler is available for protocol: ‘lpc’
2025-08-28T16:23:40Z E! [inputs.sqlserver] Error in plugin: query SQLServerCpu failed for server: LOCALHOST and database: with Error: No protocol handler is available for protocol: ‘lpc’
2025-08-28T16:23:40Z E! [inputs.sqlserver] Error in plugin: query SQLServerWaitStatsCategorized failed for server: LOCALHOST and database: with Error: No protocol handler is available for protocol: ‘lpc’
but after change protocol instead lpc on tcp everything works, but need connect to SQL Server with SharedMemory, without TCP.
Driver go-mssqldb supports this.
Addition Information: telegraf v1.35.4, Windows Server 2022, SQL Server 2019
