diff --git a/pkg/integrations/mssql/sql_exporter.go b/pkg/integrations/mssql/sql_exporter.go index fd9af2278be0..84d930d35a3e 100644 --- a/pkg/integrations/mssql/sql_exporter.go +++ b/pkg/integrations/mssql/sql_exporter.go @@ -114,6 +114,9 @@ func (c *Config) NewIntegration(l log.Logger) (integrations.Integration, error) collectorConfig = *customCollectorConfig } + // TODO(hainenber): expose below attr as config + enablePing := false + t, err := sql_exporter.NewTarget( "mssqlintegration", "", @@ -128,6 +131,7 @@ func (c *Config) NewIntegration(l log.Logger) (integrations.Integration, error) MaxConns: c.MaxOpenConnections, MaxIdleConns: c.MaxIdleConnections, }, + &enablePing, ) if err != nil {