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/googlecloudspanner] feat: table size stats #18689

Merged
Merged
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -519,3 +519,22 @@ metadata:
data:
type: "gauge"
unit: "second"
#
# -------------------------------------------- Table Size Stats ------------------------------------------------------
#
- name: "hourly table sizes stats"
evan-bradley marked this conversation as resolved.
Show resolved Hide resolved
query: "SELECT * FROM SPANNER_SYS.TABLE_SIZES_STATS_1HOUR WHERE INTERVAL_END = @pullTimestamp ORDER BY INTERVAL_END DESC, LOCK_WAIT_SECONDS DESC"
evan-bradley marked this conversation as resolved.
Show resolved Hide resolved
metric_name_prefix: "database/spanner/table_sizes/total/"
evan-bradley marked this conversation as resolved.
Show resolved Hide resolved
timestamp_column_name: "INTERVAL_END"
high_cardinality: true
labels:
- name: "table_name"
column_name: "TABLE_NAME"
value_type: "string"
metrics:
- name: "used_bytes"
column_name: "USED_BYTES"
value_type: "int"
data:
type: "gauge"
unit: "byte"