stats plugin: update structure to new-style
stats plugin: other plugins can add external metrics