# Behavioral analysis Metrics and monitoring are the two analysis layers of the platform. They work together: metrics transform events into time series, and monitors observe those series to detect behaviors outside the expected range. ## How they relate Everything begins with the events your operation sends. From those, you configure a **metric** to aggregate that data over time — counting occurrences, summing values, calculating rates. The metric is the lens through which you see what is happening. With the metric in place, you configure a **monitor** to watch it automatically. The monitor runs at regular intervals and opens an alert when it detects something outside the normal pattern — either by a manual rule you defined, or by an anomaly identified through machine learning. To track your metrics visually, organize them into [dashboards](/en/behavioral/dashboards/): customizable panels that bring together, on a single screen, what matters most to your operation.
type: "transaction" agg: count dim: "status" filter: "BRL"
metric: "transaction" interval: 5min rule: anomaly alert: ↑ spike