Add Apache license header to metrics system

Add missing Apache license header to metrics system.