Made statsd work\?
This commit is contained in:
26
datadog/datadog-agent-ecs-fargate.json
Normal file
26
datadog/datadog-agent-ecs-fargate.json
Normal 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"
|
||||
}
|
||||
7
src/clj/auto_ap/background/metrics.clj
Normal file
7
src/clj/auto_ap/background/metrics.clj
Normal 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)
|
||||
Reference in New Issue
Block a user