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

Keep aws cloudwatch metadata #33080

Closed
abalamilla opened this issue May 15, 2024 · 3 comments
Closed

Keep aws cloudwatch metadata #33080

abalamilla opened this issue May 15, 2024 · 3 comments
Labels

Comments

@abalamilla
Copy link

Component(s)

receiver/awscloudwatch

What happened?

Description

The aws cloudwatch receiver is showing the attributes: cloudwatch.log.group.name and cloudwatch.log.stream when the debug exporter is enabled, but those values are not sending into other exporters like otlphttp

Steps to Reproduce

With the following configuration the mentioned attributes are not being consider
config: receivers: awscloudwatch: region: the-region logs: poll_interval: 1m groups: autodiscover: limit: 100 prefix: /the/log/group/name service: pipelines: logs: receivers: - awscloudwatch processors: - batch exporters: - debug - otlphttp

Expected Result

Logs sending into otlphttp endpoint having the aws cloudwatch log group name and stream names

Actual Result

Logs doesn't have aws cloudwatch log group and stream names

Collector version

0.90.1

Environment information

Environment

OS: AWS EKS

OpenTelemetry Collector configuration

config:
    receivers:
      awscloudwatch:
        region: the-region
        logs:
          poll_interval: 1m
          groups:
            autodiscover:
              limit: 100
              prefix: /the/log/group/name
    service:
      pipelines:
        logs:
          receivers:
            - awscloudwatch
          processors:
            - batch
          exporters:
            - debug
            - otlphttp

Log output

Trace ID:                                                                                 │
│ Span ID:                                                                                  │
│ Flags: 0                                                                                  │
│ ResourceLog #2                                                                            │
│ Resource SchemaURL:                                                                       │
│ Resource attributes:                                                                      │
│      -> aws.region: Str(the-region)                                                        │
│      -> cloudwatch.log.group.name: Str(/the/log/group/name)                  │
│      -> cloudwatch.log.stream: Str(the-stream-name) │
│ ScopeLogs #0

Additional context

No response

@abalamilla abalamilla added bug Something isn't working needs triage New item requiring triage labels May 15, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

Copy link
Contributor

This issue has been closed as inactive because it has been stale for 120 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant