memory-metrics: Add dirty memory metric

This is useful for tuning kernel parameters for database applications,
for example.