Made statsd work\?

This commit is contained in:
Bryce Covert
2022-01-04 07:35:13 -08:00
parent 07b6e69c26
commit caa69d69a9
2 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
{
"family": "",
"networkMode": "awsvpc",
"containerDefinitions": [
{
"name": "datadog-agent",
"image": "public.ecr.aws/datadog/agent:latest",
"essential": true,
"environment": [
{
"name": "DD_API_KEY",
"value": "ce10d932c47b358e81081ae67bd8c112"
},
{
"name": "ECS_FARGATE",
"value": "true"
}
]
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View File

@@ -0,0 +1,7 @@
(ns auto-ap.background.metrics
(:require [com.unbounce.dogstatsd.core :as statsd]
[mount.core :as mount]))
(mount/defstate metrics-setup
:start (statsd/setup! :host "127.0.0.1" :port 8125 :prefix "my.app")
:stop nil)