added metrics and sonar integration