use npm graphite package to send metrics to server