Метрики на основе журнала подсчитывают записи журнала, соответствующие заданному фильтру для текущего проекта. Например, вы можете создать метрику для отслеживания количества поездок, совершенных с течением времени, с помощью следующего запроса:
Вы можете создавать оповещения, чтобы уведомлять клиентов, когда показатель выходит за пределы определенного порога, и указывать каналы уведомления для этих оповещений. См. раздел Настройка политик оповещений на основе журналов .
[null,null,["Последнее обновление: 2025-02-28 UTC."],[[["Log-based metrics are created using filters to count matching log entries within a project, like tracking trip creation events."],["Metrics data starts accumulating only after metric creation and doesn't include pre-existing log entries."],["You can set up alerts to get notified when a metric violates pre-defined thresholds."],["For further log analysis and insights, you can integrate with BigQuery."]]],["Log-based metrics track log entries matching a filter within a project. An example is tracking the number of trips created over time using a specific query. Metrics are populated only with data from logs received after the metric's creation. Users can set up alerts for metrics that exceed defined thresholds, with notifications sent to specified channels. Further, logs can be analysed using BigQuery.\n"]]