Comments (2)
In the servicelens solution, CloudWatch Agent listen on a tcp/udp port(25888) to receive EMF log event. So it requires the client side lib to write EMF log to AWS_EMF_AGENT_ENDPOINT. The aws-embeded-metrics lib can help you to generate EMF log events for metrics, and send them to CloudWatch Agent. If you write EMF log events by yourselves, you can use firelens to publish them to CloudWatch.
from amazon-cloudwatch-container-insights.
We got EMF working in Fargate by using firelens
: https://aws.amazon.com/about-aws/whats-new/2019/11/aws-launches-firelens-log-router-for-amazon-ecs-and-aws-fargate/
container_definitions:
- name: "log_router"
image: "amazon/aws-for-fluent-bit:latest"
firelensConfiguration:
type: "fluentbit"
logConfiguration:
logDriver: awslogs
options:
awslogs-group: 'test-log-group'
awslogs-region: '{{AWS_REGION}}'
awslogs-stream-prefix: 'prefix'
awslogs-create-group: 'true'
- name: 'testing_emf'
image: '{ECR_IMAGE}'
cpu: {CPU}
memoryReservation: {MEMORY}
logConfiguration:
logDriver: awsfirelens
options:
Name: "cloudwatch"
log_key: "log"
log_format: "json/emf"
log_group_name: 'test-log-group'
region: '{{AWS_REGION}}'
log_stream_prefix: 'prefix'
auto_create_group: 'true'
awslogs-group: 'test-log-group'
awslogs-region: '{{AWS_REGION}}'
awslogs-stream-prefix: 'prefix'
awslogs-create-group: 'true'
environment:
- name: 'ECS_ENABLE_CONTAINER_METADATA'
value: 'true'
still curious why the examples defined here were not working.
from amazon-cloudwatch-container-insights.
Related Issues (20)
- 0/6 nodes are available: 1 Too many pods, 5 node(s) didn't match Pod's node affinity/selector.
- Unable to Kustomize Container Insights Quickstart Manifest
- wrong parser for dmesg logs HOT 1
- Unable to pull latest image for cwagent-fluent-bit-quickstart.yaml HOT 4
- EKS 1.24 fluentbit support for cri-o format logs HOT 5
- When Containerd is used for container runtime, Fluentd cannot Forward.
- Too high cpu request for fluentbit daemonset HOT 1
- Update registry to use ECR public
- Pod logs not getting pushed with FluentD with various errors
- How to enable multiline parsing on Java stack traces? HOT 1
- IMDSv2 should be default and version should be configurable HOT 2
- Default cwagent-prometheus configurations to include Karpenter
- INFO: Collecting Logs on Bottlerocket AMI HOT 1
- Installed Fluent Bit using fluent-bit-compatible.yaml, container logs are not parsed correctly when container runtime is containerd
- Cannot seem to add a custom parser to the parsers conf of fluentd HOT 1
- Fluent-bit : Use Kubelet_Host and avoid enabling host networking
- Issue /usr/share/collectd/types.db: no such file or director
- aws:policy/CloudWatchAgentServerPolicy is lacking ec2:DescribeTags policy
- cannot get pod from kubelet, err: call to /pods endpoint failed:
- cloudwatch-agent CPU request too high, unable to patch
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-container-insights.