Skip to content

Commit

Permalink
[receiver/snowflakereceiver] New Snowflake receiver skeleton (#14778)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitrii Anoshin <anoshindx@gmail.com>
  • Loading branch information
shalper2 and dmitryax authored Oct 19, 2022
1 parent 42049e1 commit 7523480
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
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

0 comments on commit 7523480

Please sign in to comment.