Get the metric from the annotated component.