Get the graph list and register metrics on demand

Instead of registering them when getting the graph list.