Comments (6)
Hi manas86,
Thanks for your interest in cwagent! Is there any reason you want to install the agent in an alpine image? CloudWatch Agent is programmed in golang with CGO=0 flag, which does not have an external dependency on any c library when running, thus its docker image does not need any os base, (scratch was used instead, see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContainerInsights-build-docker-image.html and https://github.com/aws-samples/amazon-cloudwatch-container-insights/blob/master/cloudwatch-agent-dockerfile/Dockerfile#L14)
And since it is generally recommended to run one process per container, it probably makes more sense to have the agent run in its own container rather than be installed in the same container as the service.
from amazon-cloudwatch-agent.
Thanks, I will try your suggestion and let me come back to you on that.
And regarding recommendation running ONE process in a container is right, but in our case, it is necessary due to our requirement.
from amazon-cloudwatch-agent.
The agent binaries for linux are built with "CGO=0", which means the binaries should not have any incompatibility issues with musl. However, our packaging and control scripts does not work with openRC yet (we only support systemd and upstart atm).
from amazon-cloudwatch-agent.
I get it that, binary should not have the compatibility issue. However, when you mentioned "our packaging and control scripts do not work with openRC yet (we only support systemd and upstart atm)" --> Is there any possibility that these are going to make available for openRC?
from amazon-cloudwatch-agent.
This issue was marked stale due to lack of activity.
from amazon-cloudwatch-agent.
Just to close this out, you can take the linux amd64 version of the agent binary and copy it to your alpine container to use the agent in your container. No need to perform a special compile.
from amazon-cloudwatch-agent.
Related Issues (20)
- amazon/cloudwatch-agent:1.0.3 doesn't start on Fargate HOT 4
- aggregation_dimensions does not work with statsd
- The CloudWatch Agent requires additional configuration to use IAM Roles for Service Accounts (IRSA) or Pod Identity HOT 2
- Unable to reload agent with error message unable to address what is wrong HOT 1
- Rotate amazon-cloudwatch-agent.log HOT 2
- XRay traces sent by cloudwatch-agent are missing cloudwatch_logs data HOT 2
- cannot get pod from kubelet, err: call to /pods endpoint failed: HOT 2
- amazon-cloudwatch-observability fails with open /root/.aws/credentials ignoring the IRSA credentials HOT 12
- Log agent not running as root sometimes fails to tail log files HOT 3
- Example for append_dimensions using a value that depends on Amazon EC2 metadata HOT 1
- Container is stopped. On-premise setup. HOT 2
- X-Ray: how to set index_all_attributes (or provide a list of attributes to index)? HOT 2
- [k8s / EKS] Support for Filtering Metrics by Namespace/Pod Name in CloudWatch Agent HOT 2
- https://github.com/aws/amazon-cloudwatch-agent/releases shows v1.300034.0 but that is not current HOT 1
- CloudWatch metrics collected from prometheus , contains undesired dimensions HOT 1
- Undesired metrics added HOT 1
- [K8E mode] CloudWatch Agent shutting down when configured to collect container insights metric on EC2 K8s setup
- I wish fetch-config would not delete the .json config file HOT 3
- Publish a JSON schema of the config HOT 7
- Add KMS Key to Cloudwatch Log Group HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-cloudwatch-agent.