Create logs-based metrics

Log-based metrics count the log entries that match a given filter for the current project. For example, you could create a metric to track the number of trips created over time with the following query:

   
resource.type = 
 "audited_resource" 
  
resource.labels.method = 
 "maps.fleetengine.v1.TripService.ReportBillableTrip" 
 

For an overview and instructions on how to create log-based metrics, see Log-based metrics .

Set up alerts

You can create alerts to notify customers when a metric falls out of a defined threshold, and specify notification channels for those alerts. See Configure log-based alerting policies .

What's next

Learn how to analyse logs with BigQuery .

Create a Mobile Website
View Site in Mobile | Classic
Share by: