Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[receiver/snowflakereceiver] New Snowflake receiver #14778

Merged
merged 13 commits into from
Oct 19, 2022
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ receiver/skywalkingreceiver/ @open-telemetry/collector-c
receiver/snmpreceiver/ @open-telemetry/collector-contrib-approvers @djaglowski @StefanKurek @tamir-michaeli
receiver/solacereceiver/ @open-telemetry/collector-contrib-approvers @djaglowski @mcardy
receiver/splunkhecreceiver/ @open-telemetry/collector-contrib-approvers @atoulme @keitwb
receiver/snowflakereceiver/ @open-telemetry/collector-contrib-approvers @dmitryax @shalper2
receiver/sqlqueryreceiver/ @open-telemetry/collector-contrib-approvers @dmitryax @pmcollins
receiver/sqlserverreceiver/ @open-telemetry/collector-contrib-approvers @djaglowski @StefanKurek
receiver/statsdreceiver/ @open-telemetry/collector-contrib-approvers @jmacd @dmitryax
Expand Down
1 change: 1 addition & 0 deletions receiver/snowflakereceiver/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../../Makefile.Common
10 changes: 10 additions & 0 deletions receiver/snowflakereceiver/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Snowflake Receiver

| Status | |
|--------------------------|-------------------|
| Stability | in development |
| Supported pipeline types | metrics |
| Distributions | contrib |

This receiver collects metrics from a Snowflake account by connecting to an account and running queries at set intervals.

15 changes: 15 additions & 0 deletions receiver/snowflakereceiver/client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the License);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an AS IS BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package snowflakereceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/snowflakereceiver"
15 changes: 15 additions & 0 deletions receiver/snowflakereceiver/config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the License);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an AS IS BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package snowflakereceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/snowflakereceiver"
15 changes: 15 additions & 0 deletions receiver/snowflakereceiver/factory.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the License);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an AS IS BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package snowflakereceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/snowflakereceiver"
3 changes: 3 additions & 0 deletions receiver/snowflakereceiver/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/receiver/snowflakereceiver

go 1.19
1 change: 1 addition & 0 deletions receiver/snowflakereceiver/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

15 changes: 15 additions & 0 deletions receiver/snowflakereceiver/scraper.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the License);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an AS IS BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package snowflakereceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/snowflakereceiver"
1 change: 1 addition & 0 deletions versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ module-sets:
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/simpleprometheusreceiver/examples/federation/prom-counter
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/skywalkingreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/snmpreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/snowflakereceiver
- 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
Expand Down