-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from dbecorp/hercules-packages
Hercules packages
- Loading branch information
Showing
16 changed files
with
323 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.5.3 | ||
0.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: nyc-taxi | ||
version: 1.0.0 | ||
|
||
sources: | ||
- name: nyc_yellow_taxi_june_2024 | ||
type: parquet | ||
source: https://d37ci6vzurychx.cloudfront.net/trip-data/yellow_tripdata_2024-07.parquet | ||
materialize: true | ||
refreshIntervalSeconds: 100 | ||
|
||
metrics: | ||
gauge: | ||
- name: nyc_pickup_location_fare_total | ||
help: Total NYC fares for the month of August by pickup location | ||
enabled: True | ||
sql: select struct_pack(pickupLocation := PULocationID::text), sum(fare_amount) as val from nyc_yellow_taxi_june_2024 group by 1 | ||
labels: | ||
- pickupLocation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
name: tpch | ||
version: 1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
name: snowflake-performance | ||
version: 1.0.0 | ||
|
||
extensions: | ||
core: | ||
- name: inet | ||
|
||
community: | ||
- name: chsql # Clickhouse macros and functions | ||
|
||
macros: | ||
- sql: create or replace macro one() AS (SELECT 1); | ||
|
||
sources: | ||
- name: snowflake_query_history | ||
type: parquet | ||
source: assets/snowflake_query_history.parquet | ||
materialize: true | ||
refreshIntervalSeconds: 5 | ||
|
||
metrics: | ||
gauge: | ||
- name: query_status_count | ||
help: Queries executed and their associated status, by user and warehouse | ||
enabled: true | ||
sql: from snowflake_query_history select struct_pack(user := user_name, warehouse := warehouse_name, status := lower(execution_status)) as labels, count(*) as value group by 1; | ||
labels: | ||
- user | ||
- warehouse | ||
- status | ||
|
||
- name: queries_this_week_total | ||
help: Queries this week total, by user and warehouse | ||
enabled: true | ||
sql: select struct_pack(user := user_name, warehouse := warehouse_name) as labels, count(*) as value from snowflake_query_history group by 1; | ||
labels: | ||
- user | ||
- warehouse | ||
|
||
- name: avg_query_duration_seconds | ||
help: The average query duration for a particular user, using a particular warehouse | ||
enabled: true | ||
sql: select struct_pack(user := user_name, warehouse := warehouse_name) as labels, avg(TOTAL_ELAPSED_TIME) as value from snowflake_query_history group by 1; | ||
labels: | ||
- user | ||
- warehouse | ||
|
||
- name: table_operations_count | ||
help: The number of operations on each table over the last week | ||
enabled: true | ||
sql: select struct_pack(user := user_name, query_type := query_type) as labels, count(*) as value from snowflake_query_history group by 1; | ||
labels: | ||
- user | ||
- query_type | ||
|
||
- name: avg_virtual_warehouse_spill_to_local_storage_bytes | ||
help: The average bytes spilled to disk for queries on a specific warehouse | ||
enabled: true | ||
sql: select struct_pack(user := user_name, warehouse := warehouse_name) as labels, avg(BYTES_SPILLED_TO_LOCAL_STORAGE) as value from snowflake_query_history group by 1; | ||
labels: | ||
- user | ||
- warehouse | ||
|
||
- name: avg_virtual_warehouse_spill_to_remote_storage_bytes | ||
help: The average bytes spilled to remote disk for queries on a specific warehouse | ||
enabled: true | ||
sql: select struct_pack(user := user_name, warehouse := warehouse_name) as labels, avg(BYTES_SPILLED_TO_REMOTE_STORAGE) as value from snowflake_query_history group by 1; | ||
labels: | ||
- user | ||
- warehouse | ||
|
||
histogram: | ||
- name: query_duration_seconds | ||
help: Histogram of query duration seconds | ||
sql: select struct_pack(user := user_name, warehouse := warehouse_name) as labels, total_elapsed_time as value from snowflake_query_history; | ||
labels: | ||
- user | ||
- warehouse | ||
buckets: | ||
- 0.1 | ||
- 0.5 | ||
- 1 | ||
- 2 | ||
- 4 | ||
- 8 | ||
- 16 | ||
- 32 | ||
- 64 | ||
- 128 | ||
- 256 | ||
- 512 | ||
- 1024 | ||
- 2048 | ||
- 4096 | ||
- 8192 | ||
- 16384 | ||
- 32768 | ||
|
||
summary: | ||
- name: virtual_warehouse_query_duration_seconds | ||
help: Summary of query duration seconds | ||
sql: select struct_pack(user := user_name, warehouse := warehouse_name) as labels, total_elapsed_time as value from snowflake_query_history; | ||
labels: | ||
- user | ||
- warehouse | ||
objectives: | ||
- 0.001 | ||
- 0.05 | ||
- 0.01 | ||
- 0.5 | ||
- 0.9 | ||
- 0.99 | ||
|
||
counter: | ||
- name: queries_executed_count | ||
help: The count of queries executed by user and warehouse | ||
sql: select struct_pack(user := user_name, warehouse := warehouse_name) as labels, 1 as value from snowflake_query_history; | ||
labels: | ||
- user | ||
- warehouse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
name: snowflake-security | ||
version: 1.0.0 |
Oops, something went wrong.