I need to collect the custom metrics from my ECS instances
and from the documentation
These are steps I need to follow
- Install aws cloudwatch agent
- Install collectd daemon
- Configure cloudwatch agent to get the metrics from collectd daemon
It seems I can
Dockerize the cloudwatch agent (which seems to be already done, but with lack of documentation)
Dockerize collectd daemon
Why to dockerize or not use awslogs driver for collecting metrics ?
Currently we already have some services
running as docker instances managed by amazon ecs
and configured to use awslog driver
to send logs to amazon cloudwatch logs.
But in order to collect more custom metrics from the services e.g number of requests per particular user from service a
the only solution which aws suggested is to use colletd
with curl plugin along with cloud watch agent
.
As due to some scaling issues, instead of running cloudwatch agent
and collectd
in a instance. I want to run those as containers.
Question:
Is there any way to run cloudwatch agent in docker container
which can read the metrics from collectd daemon
which runs in different container but on the same machine ?