Added task gauges to slave metrics.

Review: https://reviews.apache.org/r/21276