Skip to content

Commit

Permalink
adding middleware handlers to Describe tags clients
Browse files Browse the repository at this point in the history
  • Loading branch information
Paramadon committed Dec 16, 2024
1 parent a785a4e commit 1a4d9bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions translator/translate/otel/extension/agenthealth/translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ var (
MetricsID = component.NewIDWithName(agenthealth.TypeStr, component.DataTypeMetrics.String())
LogsID = component.NewIDWithName(agenthealth.TypeStr, component.DataTypeLogs.String())
TracesID = component.NewIDWithName(agenthealth.TypeStr, component.DataTypeTraces.String())
StatusCodeID = component.NewIDWithName(agenthealth.TypeStr, "statuscode")

)

type translator struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package ec2taggerprocessor

import (
"github.com/aws/amazon-cloudwatch-agent/translator/translate/otel/extension/agenthealth"
"time"

"go.opentelemetry.io/collector/component"
Expand Down Expand Up @@ -63,7 +64,7 @@ func (t *translator) Translate(conf *confmap.Conf) (component.Config, error) {
cfg.DiskDeviceTagKey = "device"
}

//cfg.MiddlewareID = &agenthealth.StatusCodeID
cfg.MiddlewareID = &agenthealth.StatusCodeID
cfg.RefreshIntervalSeconds = time.Duration(0)
cfg.IMDSRetries = retryer.GetDefaultRetryNumber()

Expand Down

0 comments on commit 1a4d9bd

Please sign in to comment.