Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 58e56b3

Browse files
Merge pull request #2587 from splunk/urbiz-OD6979-snowflake-rx
[6979]: Snowflake receiver
2 parents 904bdd0 + b861971 commit 58e56b3

File tree

2 files changed

+107
-5
lines changed

2 files changed

+107
-5
lines changed

gdi/opentelemetry/components/snowflake-receiver.rst

Lines changed: 106 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,111 @@ Snowflake receiver
77
.. meta::
88
:description: Collects metrics from a Snowflake account by connecting to and querying a Snowflake deployment.
99

10-
The Splunk Distribution of the OpenTelemetry Collector supports the Snowflake receiver. Documentation is planned for a future release.
10+
The Snowflake receiver collects metrics from a Snowflake account by connecting to and querying a Snowflake deployment.
11+
12+
Get started
13+
======================
14+
15+
Follow these steps to configure and activate the component:
16+
17+
1. Deploy the Splunk Distribution of the OpenTelemetry Collector to your host or container platform:
18+
19+
- :ref:`otel-install-linux`
20+
- :ref:`otel-install-windows`
21+
- :ref:`otel-install-k8s`
22+
23+
2. Configure the receiver as described in the next section.
24+
3. Restart the Collector.
25+
26+
Sample configuration
27+
----------------------------------------------------------------------
28+
29+
To activate the receiver in the Collector, add ``snowflake`` to the ``receivers`` section of your configuration file, as shown in the following example:
30+
31+
.. code:: yaml
32+
33+
receivers:
34+
snowflake:
35+
36+
To complete the configuration, include the receiver in the ``metrics`` pipeline of the ``service`` section of your configuration file. For example:
37+
38+
.. code:: yaml
39+
40+
service:
41+
pipelines:
42+
metrics:
43+
receivers: [snowflake]
44+
45+
Configuration example
46+
----------------------------------------------------------------------
47+
48+
See the following config example:
49+
50+
.. code:: yaml
51+
52+
receivers:
53+
snowflake:
54+
username: snowflakeuser
55+
password: securepassword
56+
account: bigbusinessaccount
57+
warehouse: metricWarehouse
58+
collection_interval: 5m
59+
metrics:
60+
snowflake.database.bytes_scanned.avg:
61+
enabled: true
62+
snowflake.query.bytes_deleted.avg:
63+
enabled: false
64+
65+
Configuration settings
66+
-------------------------------------------------
67+
68+
The following settings are required:
69+
70+
* ``account``. No default. Specifies the account from which metrics are gathered from.
71+
* ``password``. No default. Specifies the password associated with the designated username. Used to authenticate with Snowflake.
72+
* ``username``. No default. Specifies the username used to authenticate with Snowflake.
73+
* ``warehouse``. No default. Specifies the warehouse, or unit of computer, designated for the metric gathering queries. Must be an existing warehouse in your Snowflake account.
74+
75+
The following settings are optional:
76+
77+
* ``collection_interval``. ``30m`` by default. Collection interval for the metrics receiver. The value for this setting must be readable by golang's ``time.ParseDuration``. Learn more at :new-page:`GO's time ParseDuration <https://pkg.go.dev/time#ParseDuration>`.
78+
* ``database``. ``'SNOWFLAKE`` by default. Snowflake DB containing the schema with usage statistics and metadata to be monitored.
79+
* ``metrics``. Controls the enabling/disabling of specific metrics. For a list of available metrics see :ref:`snowflake-receiver-metrics`. To learn more refer to :new-page:`Snowflake generated metrics <https://pkg.go.dev/time#ParseDuration>` in GitHub.
80+
* ``role``. ``'ACCOUNTADMIN'`` by default. Role associated with the username designated above. By default you need admin privileges to access most/all of the usage data.
81+
* ``schema``. ``'ACCOUNT_USAGE'`` by default. The Snowflake DB schema that contains the usage statistics and metadata to be monitored.
82+
83+
Settings
84+
======================
85+
86+
The following table shows the configuration options for the Snowflake receiver:
87+
88+
.. raw:: html
89+
90+
<div class="metrics-standard" category="included" url="https://raw.githubusercontent.com/splunk/collector-config-tools/main/cfg-metadata/receiver/snowflake.yaml"></div>
91+
92+
.. _snowflake-receiver-metrics:
93+
94+
Metrics
95+
=====================
96+
97+
The following metrics, resource attributes, and attributes are available.
98+
99+
.. raw:: html
100+
101+
<div class="metrics-component" category="included" url="https://raw.githubusercontent.com/splunk/collector-config-tools/main/metric-metadata/snowflakereceiver.yaml"></div>
102+
103+
Troubleshooting
104+
======================
105+
106+
.. raw:: html
107+
108+
<div class="include-start" id="troubleshooting-components.rst"></div>
109+
110+
.. include:: /_includes/troubleshooting-components.rst
111+
112+
.. raw:: html
113+
114+
<div class="include-stop" id="troubleshooting-components.rst"></div>
115+
11116

12-
To find information about this component in the meantime, see :new-page:`Snowflake receiver <https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/pulsarexporter>` on GitHub.
13117

gdi/opentelemetry/components/vcenter-receiver.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Follow these steps to configure and activate the component:
2727
- :ref:`otel-install-windows`
2828
- :ref:`otel-install-k8s`
2929

30-
2. Configure the receiver creator receiver as described in the next section.
30+
2. Configure the receiver as described in the next section.
3131
3. Restart the Collector.
3232

3333
Sample configuration
@@ -111,8 +111,6 @@ The following metrics, resource attributes, and attributes are available.
111111
Troubleshooting
112112
======================
113113

114-
115-
116114
.. raw:: html
117115

118116
<div class="include-start" id="troubleshooting-components.rst"></div>

0 commit comments

Comments
 (0)