Comments (4)
I downloaded nightly build. It failed to run with error:
****** processing amazon-cloudwatch-agent ******
Got Home directory: /root I! Set home dir Linux: /root I! SDKRegionWithCredsMap region: us-east-2 Region: us-east-2 credsConfig: map[shared_credential_profile:default] Successfully fetched the config and saved in /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d/ssm_AmazonCloudWatch-Config-External.tmp
Start configuration validation...
2023/12/05 22:18:45 Reading json config file path: /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d/ssm_AmazonCloudWatch-Config-External.tmp ...
2023/12/05 22:18:45 I! Valid Json input schema.
I! Detecting run_as_user...
Got Home directory: /root
Got Home directory: /root
I! Set home dir Linux: /root
I! SDKRegionWithCredsMap region: us-east-2
No csm configuration found.
No metric configuration found.
Configuration validation first phase succeeded
/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent -schematest -config /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.toml
Configuration validation second phase succeeded
Configuration validation succeeded
amazon-cloudwatch-agent has already been stopped
Tail on cloudwatch logs:
I! Set home dir Linux: /root
I! SDKRegionWithCredsMap region:
Got Home directory: /root
2023/12/05 22:18:52 E! Failed to generate configuration validation content.
2023/12/05 22:18:52 E! Failed to generate configuration validation content.
2023/12/05 22:18:52 Under path : /agent/ruleRegion/ | Error : Region info is missing for mode: onPrem
2023/12/05 22:18:52 Configuration validation first phase failed. Agent version: 1.0. Verify the JSON input is only using features supported by this version.
2023/12/05 22:18:52 I! Return exit error: exit code=1
2023/12/05 22:18:52 E! Cannot translate JSON config into TOML, ERROR is exit status 1
I modified the json configs to include region
under agent
section and now it runs w.o failing.
from amazon-cloudwatch-agent.
Not officially, but it will work. You need to set region in the config since this would be considered on prem install.
from amazon-cloudwatch-agent.
Oh, I see you set the region and it worked. That is as expected. The agent when running outside aws infra requires you to pass in a region because it can't find a default of where the instance of the agent is running.
from amazon-cloudwatch-agent.
Hello,
Did adding the region to the config fixed your issue? I will close this issue due to inactivity. If your issue is persistent please re-open this issue and we will assist you as soon as possible.
from amazon-cloudwatch-agent.
Related Issues (20)
- Failed to start CloudWatch agent on ubuntu22.04 HOT 2
- Set sampling rate in CloudWatch agent HOT 2
- local script failed to redirect to cw log even when it's created HOT 1
- Conflict error when installing amazon-cloudwatch-agent in EC2 user data HOT 4
- CW Agent not recognizing enhanced_container_insights=true using EKS/ConfigMap HOT 2
- Batch Parsing EMF Logs with Large Numeric Array Targets (>100 Members) HOT 3
- 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 3
- 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
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.