Skip to content

Commit 276e2d7

Browse files
Update bedrock support with new metrics and dimensions (#350)
1 parent 1e76d1d commit 276e2d7

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

pkg/cloudWatchConsts/metrics.go

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,15 +313,33 @@ var NamespaceMetricsMap = map[string][]string{
313313
"NumberOfRestoreJobsRunning",
314314
},
315315
"AWS/Bedrock": {
316+
"FindingCounts",
316317
"InputTokenCount",
317318
"InvocationClientErrors",
318319
"InvocationLatency",
319320
"InvocationServerErrors",
320321
"InvocationThrottles",
321322
"Invocations",
323+
"InvocationsIntervened",
324+
"Latency",
322325
"LegacyModelInvocations",
326+
"ModelInvocationClientErrors",
327+
"ModelInvocationCount",
328+
"ModelInvocationLargeDataS3DeliveryFailure",
329+
"ModelInvocationLargeDataS3DeliverySuccess",
330+
"ModelInvocationLogsCloudWatchDeliveryFailure",
331+
"ModelInvocationLogsCloudWatchDeliverySuccess",
332+
"ModelInvocationLogsS3DeliveryFailure",
333+
"ModelInvocationLogsS3DeliverySuccess",
334+
"ModelInvocationServerErrors",
335+
"ModelInvocationThrottles",
336+
"ModelLatency",
323337
"OutputImageCount",
324338
"OutputTokenCount",
339+
"TTFT",
340+
"TextUnitCount",
341+
"TotalFindings",
342+
"TotalTime",
325343
},
326344
"AWS/Billing": {
327345
"EstimatedCharges",
@@ -3398,7 +3416,7 @@ var NamespaceDimensionKeysMap = map[string][]string{
33983416
"AWS/Athena": {"QueryState", "QueryType", "WorkGroup"},
33993417
"AWS/AutoScaling": {"AutoScalingGroupName", "PairIndex", "PolicyName"},
34003418
"AWS/Backup": {"BackupVaultName", "ResourceType"},
3401-
"AWS/Bedrock": {"BucketedStepSize", "ImageSize", "ModelId"},
3419+
"AWS/Bedrock": {"AgentAliasArn", "BucketedStepSize", "FindingType", "GuardrailArn", "GuardrailContentSource", "GuardrailPolicyType", "GuardrailVersion", "ImageSize", "ModelId", "Operation", "PolicyArn", "PolicyVersion"},
34023420
"AWS/Billing": {"Currency", "LinkedAccount", "ServiceName"},
34033421
"AWS/CertificateManager": {"CertificateArn"},
34043422
"AWS/Chatbot": {"ConfigurationName"},

0 commit comments

Comments
 (0)