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

fix(docs): correct snowflake receiver docs #36294

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions receiver/snowflakereceiver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ receivers:
password: securepassword
account: bigbusinessaccount
warehouse: metricWarehouse
collection_interval: 18m
collection_interval: 5m
metrics:
snowflake.database.bytes_scanned.avg:
enabled: true
snowflake.database.bytes_deketed.avg:
snowflake.query.bytes_deleted.avg:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no metric called: snowflake.database.bytes_deketed.avg, and there was a spelling mistake in the word deleted.

enabled: false
```

Expand Down
52 changes: 26 additions & 26 deletions receiver/snowflakereceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Average bytes scanned in a database over the last 24 hour window.
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand All @@ -46,7 +46,7 @@ Total query count for database over the last 24 hour window.
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand Down Expand Up @@ -80,7 +80,7 @@ Average bytes deleted in database over the last 24 hour window.
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand All @@ -100,7 +100,7 @@ Average bytes written by database over the last 24 hour window.
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand All @@ -120,7 +120,7 @@ Average time taken to compile query over the last 24 hour window.
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand Down Expand Up @@ -154,7 +154,7 @@ Average time spent executing queries in database over the last 24 hour window.
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand Down Expand Up @@ -202,7 +202,7 @@ Average time spent in warehouse queue due to warehouse being overloaded over the
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand All @@ -222,7 +222,7 @@ Average time spent in warehouse queue waiting for resources to provision over th
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand All @@ -242,7 +242,7 @@ Average time spent in warehouse queue waiting for compute resources to be repair
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand Down Expand Up @@ -278,7 +278,7 @@ Average elapsed time over the last 24 hour window.
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand Down Expand Up @@ -306,7 +306,7 @@ Reported total credits used in the cloud service over the last 24 hour window.

| Name | Description | Values |
| ---- | ----------- | ------ |
| service_type | Service type associateed with metric query | Any Str |
| service_type | Service type associateed with metric query. | Any Str |

### snowflake.billing.total_credit.total

Expand All @@ -320,7 +320,7 @@ Reported total credits used across account over the last 24 hour window.

| Name | Description | Values |
| ---- | ----------- | ------ |
| service_type | Service type associateed with metric query | Any Str |
| service_type | Service type associateed with metric query. | Any Str |

### snowflake.billing.virtual_warehouse.total

Expand All @@ -334,7 +334,7 @@ Reported total credits used by virtual warehouse service over the last 24 hour w

| Name | Description | Values |
| ---- | ----------- | ------ |
| service_type | Service type associateed with metric query | Any Str |
| service_type | Service type associateed with metric query. | Any Str |

### snowflake.billing.warehouse.cloud_service.total

Expand Down Expand Up @@ -390,8 +390,8 @@ Total login attempts for account over the last 24 hour window.

| Name | Description | Values |
| ---- | ----------- | ------ |
| error_message | Error message reported by query if present | Any Str |
| reported_client_type | Client type used for attempt | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| reported_client_type | Client type used for attempt. | Any Str |
| is_success | Login status (success or failure). | Any Str |

### snowflake.pipe.credits_used.total
Expand All @@ -410,7 +410,7 @@ Snow pipe credits contotaled over the last 24 hour window.

### snowflake.query.bytes_spilled.local.avg

Avergae bytes spilled (intermediate results do not fit in memory) by local storage over the last 24 hour window.
Average bytes spilled (intermediate results do not fit in memory) by local storage over the last 24 hour window.

| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
Expand All @@ -422,15 +422,15 @@ Avergae bytes spilled (intermediate results do not fit in memory) by local stora
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
| warehouse_size | Size of warehouse being reported on. | Any Str |

### snowflake.query.bytes_spilled.remote.avg

Avergae bytes spilled (intermediate results do not fit in memory) by remote storage over the last 24 hour window.
Average bytes spilled (intermediate results do not fit in memory) by remote storage over the last 24 hour window.

| Unit | Metric Type | Value Type |
| ---- | ----------- | ---------- |
Expand All @@ -442,7 +442,7 @@ Avergae bytes spilled (intermediate results do not fit in memory) by remote stor
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand All @@ -462,7 +462,7 @@ Average percentage of data scanned from cache over the last 24 hour window.
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand All @@ -482,7 +482,7 @@ Number of partitions scanned during query so far over the last 24 hour window.
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand All @@ -502,7 +502,7 @@ Number of rows deleted from a table (or tables) over the last 24 hour window.
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand All @@ -522,7 +522,7 @@ Number of rows inserted into a table (or tables) over the last 24 hour window.
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand All @@ -542,7 +542,7 @@ Average number of rows produced by statement over the last 24 hour window.
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand All @@ -562,7 +562,7 @@ Average number of rows unloaded during data export over the last 24 hour window.
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand All @@ -582,7 +582,7 @@ Average number of rows updated in a table over the last 24 hour window.
| ---- | ----------- | ------ |
| schema_name | Name of schema associated with query result. | Any Str |
| execution_status | Execution status of query being reported. | Any Str |
| error_message | Error message reported by query if present | Any Str |
| error_message | Error message reported by query if present. | Any Str |
| query_type | Type of query performed. | Any Str |
| warehouse_name | Name of warehouse in query being reported on. | Any Str |
| database_name | Name of database being queried (default is snowflake). | Any Str |
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions receiver/snowflakereceiver/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ resource_attributes:

attributes:
service_type:
description: Service type associateed with metric query
description: Service type associateed with metric query.
type: string
error_message:
description: Error message reported by query if present
description: Error message reported by query if present.
type: string
reported_client_type:
description: Client type used for attempt
description: Client type used for attempt.
type: string
is_success:
description: Login status (success or failure).
Expand Down Expand Up @@ -164,14 +164,14 @@ metrics:
enabled: true
attributes: [schema_name, execution_status, error_message, query_type, warehouse_name, database_name, warehouse_size]
snowflake.query.bytes_spilled.local.avg:
description: Avergae bytes spilled (intermediate results do not fit in memory) by local storage over the last 24 hour window.
description: Average bytes spilled (intermediate results do not fit in memory) by local storage over the last 24 hour window.
unit: By
gauge:
value_type: double
enabled: false
attributes: [schema_name, execution_status, error_message, query_type, warehouse_name, database_name, warehouse_size]
snowflake.query.bytes_spilled.remote.avg:
description: Avergae bytes spilled (intermediate results do not fit in memory) by remote storage over the last 24 hour window.
description: Average bytes spilled (intermediate results do not fit in memory) by remote storage over the last 24 hour window.
unit: By
gauge:
value_type: double
Expand Down Expand Up @@ -320,4 +320,4 @@ tests:
ignore:
any:
# Regarding the godbus/dbus ignore: see https://github.com/99designs/keyring/issues/103
- "github.com/godbus/dbus.(*Conn).inWorker"
- "github.com/godbus/dbus.(*Conn).inWorker"