Datadog stats

This commit is contained in:
Bryce Covert
2022-01-04 11:53:47 -08:00
parent e6229ef5d0
commit 6ca4f0fb60
9 changed files with 160 additions and 146 deletions

View File

@@ -1,7 +1,8 @@
(ns auto-ap.background.metrics
(:require [com.unbounce.dogstatsd.core :as statsd]
[mount.core :as mount]))
[mount.core :as mount]
[config.core :refer [env]]))
(mount/defstate metrics-setup
:start (statsd/setup! :host "127.0.0.1" :port 8125 :prefix "my.app")
:start (statsd/setup! :host "127.0.0.1" :port 8125 :prefix "integreat.app" :tags #{(:dd-env env)})
:stop nil)