new example for registering metric.  JSON example now matches readme