Custom Metric

Hi is there any way to add “custom” metric for the Metrics Component?

Best Regards
Siggi