configuration for posting metrics

Configure the following parameters
* metrics.dequeue_delay (delay for dequeuing from buffer queue)
* metrics.retry_delay (delay for retring a request that causes errors)
* retry_max (max numbers of retries for a request that causes errors)
* buffer_size (max numbers of requests stored in buffer queue)