From e1e1872d7dcc4c2f7a91e7d352c5db05f72a3a6d Mon Sep 17 00:00:00 2001 From: Curtis Robert Date: Tue, 9 Apr 2024 16:08:11 -0700 Subject: [PATCH] Add new component: SQL Server receiver (#4649) --- CHANGELOG.md | 4 ++++ go.mod | 1 + go.sum | 2 ++ internal/components/components.go | 2 ++ internal/components/components_test.go | 1 + 5 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73b7a4c5ee..13b50d1aa6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### 🚀 New components 🚀 + +- (Splunk) Add SQL Server receiver + ### 🛑 Breaking changes 🛑 - (Splunk) `receiver/discovery`: Update metrics and logs evaluation statements schema: diff --git a/go.mod b/go.mod index 92a689624e..21a5ea7cc0 100644 --- a/go.mod +++ b/go.mod @@ -86,6 +86,7 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/receiver/solacereceiver v0.97.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/splunkhecreceiver v0.97.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlqueryreceiver v0.97.0 + github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlserverreceiver v0.97.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sshcheckreceiver v0.97.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/statsdreceiver v0.97.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/syslogreceiver v0.97.0 diff --git a/go.sum b/go.sum index 16225a784f..d4bedbbaee 100644 --- a/go.sum +++ b/go.sum @@ -1425,6 +1425,8 @@ github.com/open-telemetry/opentelemetry-collector-contrib/receiver/splunkhecrece github.com/open-telemetry/opentelemetry-collector-contrib/receiver/splunkhecreceiver v0.97.0/go.mod h1:xXX6qz7R9GKQy3OU/tO9it7ja4V8TvoYTiUN7UMm6VE= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlqueryreceiver v0.97.0 h1:/o+xhyntk1VbRBcR5KRsz6PBLIH8l8CG2mbfdUL+doA= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlqueryreceiver v0.97.0/go.mod h1:RO3V203iKCCS753WgwEdGEYK8GvU1rTUmbwL/9AmpaA= +github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlserverreceiver v0.97.0 h1:2Qt85hoLKn4XbkDkdhxHHYyvPm5ngdUWoyo0TjQzYs8= +github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlserverreceiver v0.97.0/go.mod h1:oF10K9+sACOJBt+w8s4hr1nvFipBMo4wZcB8bW69tk8= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sshcheckreceiver v0.97.0 h1:B0kiCYfzBSOLHXJQzYeakBcycpDJVirCkU8XQjUcdzo= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sshcheckreceiver v0.97.0/go.mod h1:KK7u7CWQd0Bgt5SL9pu1EnzC+aMv+4FZkQwqFKLfcU4= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/statsdreceiver v0.97.0 h1:6ed4O0uInCS7WxfpwFt4ZJ8cytVqno2bckGIzNe+qZ0= diff --git a/internal/components/components.go b/internal/components/components.go index 493b7f124a..340f6eb6b5 100644 --- a/internal/components/components.go +++ b/internal/components/components.go @@ -84,6 +84,7 @@ import ( "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/solacereceiver" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/splunkhecreceiver" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlqueryreceiver" + "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlserverreceiver" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sshcheckreceiver" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/statsdreceiver" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/syslogreceiver" @@ -183,6 +184,7 @@ func Get() (otelcol.Factories, error) { solacereceiver.NewFactory(), splunkhecreceiver.NewFactory(), sqlqueryreceiver.NewFactory(), + sqlserverreceiver.NewFactory(), sshcheckreceiver.NewFactory(), statsdreceiver.NewFactory(), syslogreceiver.NewFactory(), diff --git a/internal/components/components_test.go b/internal/components/components_test.go index df61399072..d450f8e953 100644 --- a/internal/components/components_test.go +++ b/internal/components/components_test.go @@ -80,6 +80,7 @@ func TestDefaultComponents(t *testing.T) { "solace", "splunk_hec", "sqlquery", + "sqlserver", "sshcheck", "statsd", "syslog",