October 2019
Intermediate to advanced
520 pages
13h 5m
English
Logs can be used to create log-based metrics. Stackdriver can accumulate logs that are defined by the filter every time a match appears. This data is then exposed to monitoring, and can be used further to create dashboards and alert policies.
As an example, logs containing a particular 404 error message can be counted during a period of 1 minute and exposed as a metric.
The log-based metric can either be system metrics or user-defined:
In the following screenshot, we can see an example of system and user-defined metrics:
Read now
Unlock full access