Implement a custom metric to use in Quality Gate checks

Is it possible to define the custom metric implementing a SonarQube plugin?

I’m asking again because of this answer given by G Ann Campbell to a similar request: Monitoring custom metrics of a Project - #2 by ganncamp

Thank you