Field Metrics
Field Metric monitors make it easy to add monitoring for % null, % unique, % negative, mean, median, and many other available metrics.
This monitor combines the functionality from Field Health and Field Quality Rules into one experience. The former allowed for monitoring of metrics using automated thresholds, and the latter allowed for manual thresholds. With Field Metrics, a user has one experience that allows creation of monitors with either automated or manual thresholds.
To create a Field Metric monitor, select Field Metrics on the Create Monitor page or Assets page.
Then:
- Select one or more tables or views to be monitored. If multiple tables are selected:
- You will be required to select specific fields to monitor that must be common across all selected tables
- Only manual thresholds will be available
- Select the fields to be monitored. You can to either select
- Choose Fields β allowing you to select the exact fields to be monitored
- Important Fields β selects fields that Monte Carlo has automatically identified as important
- All fields β selects all field in the table (limit of 300)
- Select metrics and threshold.
- Select metrics
- If youβve selected Choose Fields, Monte Carlo will only present the metrics that are compatible with the selected field types. For example, Monte Carlo wonβt show βMeanβ if youβve selected a Text field, because a string does not represent a numeric value.
- If youβve selected Important Fields or All Fields, Monte Carlo will allow you to select from all metric types. If a selected metric is incompatible with a selected field, that metric simply wonβt get tracked.
- Some metrics will also require you to select % Null and % Unique if you want to apply an automatic threshold, as the context of % Null and % Unique help to weed out false positives or statistically insignificant anomalies.
- If a manual threshold is selected:
- the monitor will only be able to track a single metric. If multiple metrics are selected, it will automatically switch over to automated thresholds. If youβd like to apply manual thresholds across multiple metrics, each metric must be separated out into a different monitor.
- the user can add structured filters to the monitor to select just recent data (e.g. created in the last 1 day) or for a specific segment of data.
- If Anomalous (automated threshold) is selected:
- Monte Carloβs machine learning will determine an appropriate threshold for the selected metrics. Note that this option is only available when a single table has been selected.
- There are a few additional configuration options made available to the user:
- Aggregate metrics by:
- When set to None, all rows that pass through the filters will be bucketed into one measurement and compared against the threshold. This is the simplest way to set up this monitor.
- When set to Hour or Day, you will select a field representing the row creation time. Measurements will be bucketed using that field into a time series of hours or days. These are then compared against the threshold, which can lead to more granular anomaly detection.
- Field that represents row creation time. The user also has the option to select an existing field or compose one using SQL.
- Lookback period. This is how far back each run of the monitor will query, using the βField that represents row creation time.β For most monitors that run every 12 or 24 hours, a 2 day lookback is more than sufficient. This option is only presented when βDayβ is selected for aggregation.
- WHERE clause. This allows the user to further filter the data.
- Aggregate metrics by:
- Select metrics
- Select a field for segmentation. This is only available when Anomalous (automated threshold) is selected. Segmenting can lead to better anomaly detection and clearer root causes. Common fields to segment by include products, regions, event types, versions, and merchants.
- When a Segmentation field is selected here, Monte Carlo will calculate statistics grouped by the values in that field. This helps to isolate anomalies.
- If two fields are selected here, Monte Carlo will calculate statistics grouped by each combination of values from those multiple fields, e.g. Product='Loans' AND Region='EMEA'.
- Up to 1,000 segments can be tracked per Field Metric monitor.
- Add description and notes. These serve as a name for the monitor within the app (Description) and any additional detail youβd like passed through in notifications when the monitor detects an anomaly (Notes).
- Set schedule. A few different schedule types are available:
- Form based. This is appropriate for the vast majority of Field Metric monitors, and allows you to set a regular, recurring schedule (e.g. run every 12 hours starting at 7am on January 1)
- CRON based. Only available when a manual threshold is selected.
- Manual triggers. Only available when a manual threshold is selected. For use with circuit breakers.
- Dynamic. Only available when Anomalous (automated threshold) is selected. This will run the monitor when Monte Carlo identifies that the table has received an update.
- Send notifications. Add the appropriate audiences so you can be notified when the monitor identifies an anomaly.
For now, Incidents created by Field Metric monitors still generate Incidents bearing the names of their former monitor types. For filters in Incident Feed and Notification Settings, a Field Metric monitor with
- an automated threshold correlates to βField Healthβ Incidents
- a manual thresholds correlates to βField Quality Ruleβ Incidents.
In the future, these will be unified into one βField Metricsβ Incident type.
In addition, in Monitors as Code, Field Metric monitors are still identified using their old monitor names of Field Health (for automated thresholds) and Field Quality Rules (for manual thresholds).
Additional Notes
- % Null: the detector for null rate is optimized for the extremes. In other words, if a column rarely or never sees nulls, then the threshold becomes very very sensitive. But if there is a lot of volatility (e.g. where we see 30-50% null rate), and especially if that volatility is away from the extremes (e.g. 40-60% vs 0-1%), then it rapidly becomes insensitive. This is to prevent lots of false positives and noise.
Updated 6 months ago