refactoring plugin metric data push request