Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX]: Honor adotCollector.daemonSet.cwexporters.logGroupName when set #92

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

saurav-agarwalla
Copy link

Description: Honor adotCollector.daemonSet.cwexporters.logGroupName when set. Currently, setting this field doesn't do anything.

Link to tracking Issue: N/A

Testing:

With current chart version

Log group not set

➜  charts git:(main) helm install test-release-0 aws-observability/adot-exporter-for-eks-on-ec2 \
  --set "clusterName=test-otel-cluster" --set "awsRegion=us-west-2" \
  --set "adotCollector.daemonSet.service.metrics.receivers={awscontainerinsightreceiver}" \
  --set "adotCollector.daemonSet.service.metrics.exporters={awsemf}"
NAME: test-release-0
LAST DEPLOYED: Wed Mar 22 13:39:57 2023
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
Thank you for installing adot-exporter-for-eks-on-ec2.

Your release is named test-release-0.

To learn more about the release, try:

  $ helm status test-release-0
  $ helm get all test-release-0

➜  charts git:(main) kubectl describe cm adot-conf -n amazon-metrics | grep log_group_name
    log_group_name: '/aws/containerinsights/test-otel-cluster/performance'
➜  charts git:(main)

Log group set

➜  charts git:(main) helm install test-release-0 aws-observability/adot-exporter-for-eks-on-ec2 \
  --set "clusterName=test-otel-cluster" --set "awsRegion=us-west-2" \
  --set "adotCollector.daemonSet.service.metrics.receivers={awscontainerinsightreceiver}" \
  --set "adotCollector.daemonSet.service.metrics.exporters={awsemf}" \
  --set "adotCollector.daemonSet.cwexporters.logGroupName=testLogGroup"
NAME: test-release-0
LAST DEPLOYED: Wed Mar 22 13:41:29 2023
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
Thank you for installing adot-exporter-for-eks-on-ec2.

Your release is named test-release-0.

To learn more about the release, try:

  $ helm status test-release-0
  $ helm get all test-release-0

➜  charts git:(main) kubectl describe cm adot-conf -n amazon-metrics | grep log_group_name
    log_group_name: '/aws/containerinsights/test-otel-cluster/performance'
➜  charts git:(main)
With fixed chart version

Log group not set

➜  charts git:(main) helm install test-release-0 adot-exporter-for-eks-on-ec2 \
  --set "clusterName=test-otel-cluster" --set "awsRegion=us-west-2" \
  --set "adotCollector.daemonSet.service.metrics.receivers={awscontainerinsightreceiver}" \
  --set "adotCollector.daemonSet.service.metrics.exporters={awsemf}"
NAME: test-release-0
LAST DEPLOYED: Wed Mar 22 13:43:43 2023
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
Thank you for installing adot-exporter-for-eks-on-ec2.

Your release is named test-release-0.

To learn more about the release, try:

  $ helm status test-release-0
  $ helm get all test-release-0

➜  charts git:(main) kubectl describe cm adot-conf -n amazon-metrics | grep log_group_name
    log_group_name: '/aws/containerinsights/test-otel-cluster/performance'

Log group set

➜  charts git:(main) helm install test-release-0 adot-exporter-for-eks-on-ec2 \
  --set "clusterName=test-otel-cluster" --set "awsRegion=us-west-2" \
  --set "adotCollector.daemonSet.service.metrics.receivers={awscontainerinsightreceiver}" \
  --set "adotCollector.daemonSet.service.metrics.exporters={awsemf}" \
  --set "adotCollector.daemonSet.cwexporters.logGroupName=testLogGroup"
NAME: test-release-0
LAST DEPLOYED: Wed Mar 22 13:45:12 2023
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
Thank you for installing adot-exporter-for-eks-on-ec2.

Your release is named test-release-0.

To learn more about the release, try:

  $ helm status test-release-0
  $ helm get all test-release-0

➜  charts git:(main) kubectl describe cm adot-conf -n amazon-metrics | grep log_group_name
    log_group_name: testLogGroup

Documentation: N/A

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@saurav-agarwalla saurav-agarwalla requested a review from a team as a code owner March 22, 2023 17:47
@github-actions
Copy link

This PR is stale because it has been open 60 days with no activity.

@github-actions github-actions bot added the stale label May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant