<#C08HW57FGN9|> ``` # Optionally specify which mo...
# ask-elementary-ai
s
#C08HW57FGN9
Copy code
# Optionally specify which monitors to use, or leave blank for defaults
              # column_anomalies: [average, min, max]  # Example: monitor specific metrics
which should i give here what is meant by which monitoprs to use in the sense , column_anomolies , I need to ensure there is not much null for the amount field, so im asking for null_percent and null_count
k
A message from kapa.ai
To monitor for nulls in your amount field, you should specify the monitors
null_count
and
null_percent
in the
column_anomalies
configuration. These monitors will track both the count and percentage of null values in the column, alerting you to any significant changes or anomalies. Here’s how you can configure it in your dbt model YAML:
Copy code
yaml columns:   - name: amount     tests:       - elementary.column_anomalies:           column_anomalies: [null_count, null_percent]
What does "which monitors to use" mean? The
column_anomalies
parameter lets you choose which specific data quality metrics (monitors) you want to track for a column. If you leave it blank, Elementary will use the default monitors for the column type. By specifying
[null_count, null_percent]
, you are telling Elementary to only monitor the count and percentage of nulls for the
amount
column, which matches your requirement to ensure there are not too many nulls. You can find the full list of supported monitors and their default behavior in the documentation. For numeric columns like
amount
,
null_count
and
null_percent
are both available and appropriate for your use case [see documentation](https://docs.elementary-data.com/data-tests/anomaly-detection-configuration/column-anomalies) and [column_anomalies test details](https://docs.elementary-data.com/data-tests/anomaly-detection-tests/column-anomalies). Let me know if you need an example for a different column type or want to monitor additional metrics!