---
title: Metrics-based query
description: Configure metric-based queries using the Query Builder to define alert conditions, filter data, apply functions, and analyze metric behavior over time.
url: https://coralogix.com/docs/user-guides/alerting/metric-based-query/
product: alerts
feature: Alert Definitions
feature_id: alert-definitions
feature_identifier: alerts/alert-definitions
last_updated: '2026-07-06'
---

# Metric based query

<!--$?-->

<!--/$-->

## Related resources

[Metric threshold alerts](https://coralogix.com/docs/user-guides/alerting/create-an-alert/metrics/threshold-alerts.md)[Configure alert definition](https://coralogix.com/docs/user-guides/alerting/configuring-alert-definition.md)[Introduction to alerts](https://coralogix.com/docs/user-guides/alerting/introduction-to-alerts.md)

## Next steps

Set up machine-learning-based alerting for your logs in [Anomaly detection alerts](https://coralogix.com/docs/user-guides/alerting/create-an-alert/logs/anomaly-detection-alerts.md).
