 (def ^:dynamic graphite-port
   (Integer/valueOf (env :graphite-port "2003")))
 
-(def ^:dynamic graphite-post-interval
-  (Integer/valueOf (env :graphite-post-interval "60")))
-
-(def ^:dynamic graphite-post-unit
-  (TimeUnit/valueOf (env :graphite-post-unit "SECONDS")))
+(def ^:dynamic graphite-post-interval-seconds
+  (Integer/valueOf (env :graphite-post-interval-seconds "60")))
 
 (def ^:dynamic graphite-prefix
   (env :graphite-prefix))

  {:graphite-enabled? graphite-enabled?
   :graphite-host graphite-host
   :graphite-port graphite-port
   :graphite-post-interval graphite-post-interval
   :graphite-post-unit graphite-post-unit
   :graphite-prefix graphite-prefix})

(defn read-file-to-properties

            [clojure.string :as str]
            [environ.core :refer [env]]
            [metrics.jvm.core :refer [instrument-jvm]]
            [metrics.reporters.graphite :as graphite])
  (:import [java.io Reader]
           [java.net InetAddress UnknownHostException]
           [java.util Properties]
