Compute log-based metrics as rates or counters

By default, the metrics will still be sent as rates but for Prometheus
based monitoring, they will be sent as counters.

Change-Id: Ia9e64c35b32a1fa49071d698f91fdb2a7665a225
8 files changed