added example script which collects system metrics