stats - outdated variable syntax

https://projects.puppetlabs.com/issues/19058

Change-Id: Ie04e10f4579a6fe76c10ee62c3dc8b0673a35e15
Merge "stats - outdated variable syntax" into production