As métricas com base em registros contam as entradas de registro que correspondem a um determinado filtro para o projeto atual. Por exemplo, você pode criar uma métrica para acompanhar o número de viagens criadas ao longo do tempo com a seguinte consulta:
Para ter uma visão geral e instruções sobre como criar métricas com base em registros, consulte Métricas com base em registros.
Configurar alertas
É possível criar alertas para notificar os clientes quando uma métrica sai de um limite definido e especificar canais de notificação para esses alertas. Consulte Configurar
políticas de alerta com base em registros.
[null,null,["Última atualização 2025-02-25 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"]]