jakem
02/21/2024, 4:36 PMmetric_name added to the data_monitoring_metrics table. I’m seeing row_count here when the model I have tests for doesn’t have any row count tests defined and only has a sum column anomaly. Very possible I’m doing something wrong though! Has anyone come across this before?Ella Katz
02/21/2024, 4:42 PMElla Katz
02/21/2024, 4:42 PMjakem
02/21/2024, 4:52 PMjakem
02/21/2024, 4:53 PM- name: event_count_column
description: event_count_column
tests:
- elementary.column_anomalies:
column_anomalies:
- sum
where_expression: "event_name = 'X'"
time_bucket: # Daily by default
period: day
count: 1
training_period:
period: day
count: 30
tags: ["update"]
config:
severity: warn
- elementary.column_anomalies:
column_anomalies:
- sum
where_expression: "event_name = 'Y'"
anomaly_sensitivity: 4
tags: ["update"]
config:
severity: warnjakem
02/21/2024, 4:54 PMjakem
02/21/2024, 4:54 PMconfig:
elementary:
timestamp_column: "day_pt"jakem
02/21/2024, 4:57 PMsum metric_name when i run it right now! only seeing row_count and build_timestampjakem
02/21/2024, 5:10 PMrow_count rather than sum a few weeks ago. is it possible there’s some kind of cache i need to drop?Ella Katz
02/22/2024, 8:34 AMdbt test since?jakem
02/22/2024, 3:02 PMrow_count rather than sum with the config above each time i’ve run it, both in a testing env and through our orchestratorjakem
02/22/2024, 3:03 PMelementary_test_results table, i do see column_anomalies listed in in the test_short_name column as expected, rather than volume_anomalies for some other models 🤔Ella Katz
02/22/2024, 3:11 PMjakem
02/22/2024, 3:11 PMjakem
02/22/2024, 3:12 PMversion: 0.13.2jakem
02/22/2024, 3:18 PMcreated_at timestamp) looks to be:
1. Record is added to data_monitoring_metrics with the row_count value for metric_name and none with column sum
2. A few seconds later, record added to elementary_test_results for that model that looks like it is running column sum metrics (as expected) and no row counts
3. Nothing appears in the metrics_anomaly_score view for this model (row counts or column sums), even though things show up for other models hereElla Katz
02/22/2024, 8:04 PMwhere column_name = 'event_count_column' ?
do you see row count metrics there as well?jakem
02/22/2024, 8:09 PMcolumn_name = 'event_count' and metric_name = 'sum' from a few weeks ago (I have no idea what changed since then lol), but in the last few weeks, no records in that table with anything besides a null column_name, since it only has row_count and build_timestamp as the two metric_name valuesElla Katz
02/22/2024, 8:16 PMdbt test --vars '{"force_metrics_backfill": true}
also, just in case, you can try upgrading to 0.14.0.jakem
02/22/2024, 8:35 PMforce_metrics_backfill portion do?Ella Katz
02/24/2024, 4:19 PM