From 971ada8e47bd54a4d4e0cc1fc7d701d7a0548433 Mon Sep 17 00:00:00 2001 From: Sanjay Suthar <21999586+sanjoyment@users.noreply.github.com> Date: Tue, 4 Jun 2024 17:33:39 +0530 Subject: [PATCH] ENG-2454: AWS Integration - Minor Changes (#68) * ENG-2454: AWS Integration * minor * ENG-2454: AWS Integration - Minor Changes --- receiver/awscloudwatchmetricsreceiver/receiver.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/receiver/awscloudwatchmetricsreceiver/receiver.go b/receiver/awscloudwatchmetricsreceiver/receiver.go index a9479d11e76a..c4172d177c3a 100644 --- a/receiver/awscloudwatchmetricsreceiver/receiver.go +++ b/receiver/awscloudwatchmetricsreceiver/receiver.go @@ -307,7 +307,8 @@ func (m *metricReceiver) parseMetrics(nowts pcommon.Timestamp, nr []request, res resourceAttrs.PutStr(conventions.AttributeCloudProvider, conventions.AttributeCloudProviderAWS) resourceAttrs.PutStr(conventions.AttributeCloudRegion, m.region) resourceAttrs.PutStr("channel", conventions.AttributeCloudProviderAWS) - resourceAttrs.PutStr("polling_approach", m.pollingApproach) + resourceAttrs.PutStr("aws.scraping_approach", "api_polling") + resourceAttrs.PutStr("aws.polling_approach", m.pollingApproach) if m.awsAccountId != "" { resourceAttrs.PutStr(conventions.AttributeCloudAccountID, m.awsAccountId) } else {