Comments (8)
Hello @ElvenSpellmaker, can you share your complete deployment template. Also please refer to the v0.35.0 for the breaking change - #2317
Please try adding https://github.com/aws-observability/aws-otel-collector/blob/main/deployment-template/eks/otel-container-insights-infra.yaml#L189-L191 to run as a root user to collect pod metrics.
from aws-otel-collector.
Hey @vasireddy99, we're currently deploying the OTEL Helm chart here: https://github.com/aws-observability/aws-otel-helm-charts
Version: 0.21.0
What's interesting is that the chart says the containers run as root, but the issue you linked says the chart needs to run as aoc.
from aws-otel-collector.
Here are the Helm Values:
global:
namespaceOverride: "aws-adot-otel"
awsRegion: "eu-west-2"
clusterName: "foo-bar-baz"
adotCollector:
daemonSet:
namespace: "aws-adot-otel"
serviceAccount:
name: "aws-adot-otel-sa"
annotations:
eks.amazonaws.com/role-arn: "arn:...:nonprod-aws-adot-otel-aws-adot-otel-sa"
service:
metrics:
receivers: ["awscontainerinsightreceiver"]
exporters: ["awsemf"]
The helm chart creates the K8s Service account with the permissions as stated in the helm chart. The Role in AWS eks.amazonaws.com/role-arn
is created by us with the following permissions (through Terraform):
from aws-otel-collector.
I also notice the helm chart doesn't set any securityContext
on the chart values: https://github.com/aws-observability/aws-otel-helm-charts/blob/main/charts/adot-exporter-for-eks-on-ec2/values.yaml
from aws-otel-collector.
I can confirm that manually adding the runAsUser
and runAsGroup
as 0
to the Dæmonset removes the error.
The Helm chart needs updating to allow us to specify a secuirty context.
However, I can't see any additional metrics since the error has gone away compared to when the error was present...
EDIT: The error message goes but it's still only collecting service metrics and not pod metrics, the default chart says it collects several pod metrics but it's just not (without any errors too)
EDIT2: I'm noticing this: no pod information is found in podstore for pod ...
, so the root only fixes part of the issue.
EDIT3: Boom, if you add both the securityContext
and the /run/dockershim.sock
mount then pod metrics start to come in.
It seems the helm chart needs a few updates to allow this.
EDIT4: It seems that while it's collecting the metrics it's still not surfacing those in Container Insights for some reason...
from aws-otel-collector.
It seems that while it's collecting the metrics it's still not surfacing those in Container Insights for some reason...
I have same issue. After setting security context and fix /run/dockershim.sock
for bottlerocket, some metrics remain unpublished.
is it because some metrics are available only with Container Insights with enhanced observability for Amazon EKS
as listed in this docs?
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-metrics-EKS.html
from aws-otel-collector.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
from aws-otel-collector.
This issue was closed because it has been marked as stale for 30 days with no activity.
from aws-otel-collector.
Related Issues (20)
- /healthcheck doesn't work in ECS HOT 4
- Toolchain in Dockerfile too old to build AWS collector HOT 5
- spanmetricsprocessor (spanmetricsconnector) support HOT 3
- Add FluentForward receiver HOT 2
- ADOT EKS addon (v0.92.1-eksbuild.1) - Using otlphttp exporters when using the Add-on configuration schema HOT 3
- OTEL_OTLP_ENDPOINT seems to get ignored HOT 1
- Aws X-Ray sampling rules are being ignored HOT 4
- Not getting AWS Lambda service and the AWS Lambda function trace in custom OTEL collector HOT 2
- OpenTelemetry X-Ray: Traces without hierarchy HOT 1
- Add support for windowseventlog receiver for ADOT collector HOT 2
- ADOT EKS add-on documentation is missing important parts HOT 1
- Default image for autoinstrumentation dotnet is not setting the right path for Startup Hook HOT 2
- Attention: ADOT Collector upcoming breaking changes - third party exporter deprecation HOT 10
- err: open /opt/aws/aws-otel-collector/etc/extracfg.txt: no such file or directory HOT 1
- Error: NoCredentialProviders when using AWS X-Ray Exporter HOT 1
- ADOT EC2 not listening for traffic with IPv4, defaults to IPv6. Unable to communicate to the instance from anywhere.
- CVE-2024-36129 in upstream OTEL Collector HOT 2
- AWS Distro for OpenTelemetry EKS add-on for kubernetes 1.30? HOT 6
- Can't filter out noisy events from Lambda due to outdated OTel collector version (v0.39.0, last released 3 years ago)
- NoCredentialProviders: no valid providers in chain. Deprecated. For verbose messaging see aws.Config.CredentialsChainVerboseErrors when using AWS X-Ray Exporter
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 aws-otel-collector.