Introduction

Amazon Bedrock is a fully managed AWS service that provides access to foundation models (FMs) from leading AI providers through a unified API, along with capabilities for building and deploying generative AI applications.

OpsRamp discovers and monitors Amazon Bedrock resources, including foundation models, custom models, provisioned throughput, agents, knowledge bases, guardrails, flows, and prompts. It also collects Amazon CloudWatch metrics related to model, agent, and guardrail invocations, providing visibility into resource health and usage.

Use the AWS Public Cloud integration to discover Amazon Bedrock resources and collect associated performance and operational metrics.

Setup

To set up the AWS integration and discover Bedrock resources, do the following:

  1. Create an AWS Integration if not available in your installed integrations.
  2. Create or edit a discovery profile.
  3. Select Bedrock resource types in the AWS Integration Discovery Profile.
  4. Save the discovery profile.
  5. Scan to discover resources at any time independent of the predefined schedule.

Metrics are collected from Amazon CloudWatch under the AWS/Bedrock, AWS/Bedrock/Agents, and AWS/Bedrock/Guardrails namespaces.

Ensure the integration IAM role grants:

  • bedrock:List*
  • bedrock:Get*
  • bedrock-agent:List*
  • bedrock-agent:Get*
  • cloudwatch:GetMetricData

Supported resource types

Resource Type (Native Type)Resource TagDescription
AWS Bedrock Foundation ModelAWS_BEDROCK_MODELManaged foundation models available in Amazon Bedrock.
AWS Bedrock Custom ModelAWS_BEDROCK_CUSTOM_MODELCustomer fine-tuned and customized models.
AWS Bedrock Provisioned ThroughputAWS_BEDROCK_PROVISIONED_THROUGHPUTProvisioned model throughput allocations.
AWS Bedrock AgentAWS_BEDROCK_AGENTBedrock agents that orchestrate FMs, data, and actions.
AWS Bedrock Agent AliasAWS_BEDROCK_AGENT_ALIASNamed, versioned pointers to a Bedrock agent.
AWS Bedrock Knowledge BaseAWS_BEDROCK_KNOWLEDGE_BASEKnowledge bases used for retrieval-augmented generation.
AWS Bedrock Data SourceAWS_BEDROCK_DATA_SOURCEData sources ingested into a knowledge base.
AWS Bedrock GuardrailAWS_BEDROCK_GUARDRAILSafeguards that filter harmful content and PII.
AWS Bedrock FlowAWS_BEDROCK_FLOWBedrock flows that chain prompts, agents, and knowledge bases.
AWS Bedrock Flow AliasAWS_BEDROCK_FLOW_ALIASNamed, versioned pointers to a Bedrock flow.
AWS Bedrock PromptAWS_BEDROCK_PROMPTManaged prompts stored in Prompt Management.

Event support

CloudTrail event support

  • Not supported for Bedrock resource-specific mapping.
  • Monitoring is based on Amazon CloudWatch metrics and periodic discovery polling.

CloudWatch alarm support

  • Not supported for AWS Bedrock resources.

Supported metrics

Foundation Model, Custom Model, and Provisioned Throughput

Namespace: AWS/Bedrock

OpsRamp MetricAWS MetricMetric Display NameUnitAggregation TypeDescription
aws_bedrock_InvocationsInvocationsInvocationsCountSumNumber of model invocation requests.
aws_bedrock_InvocationLatencyInvocationLatencyInvocation LatencyMillisecondsAverageLatency of model invocations.
aws_bedrock_InputTokenCountInputTokenCountInput Token CountCountSumNumber of input tokens processed.
aws_bedrock_OutputTokenCountOutputTokenCountOutput Token CountCountSumNumber of output tokens generated.
aws_bedrock_InvocationClientErrorsInvocationClientErrorsInvocation Client ErrorsCountSumNumber of client-side invocation errors.
aws_bedrock_InvocationServerErrorsInvocationServerErrorsInvocation Server ErrorsCountSumNumber of server-side invocation errors.
aws_bedrock_InvocationThrottlesInvocationThrottlesInvocation ThrottlesCountSumNumber of throttled invocations.

Agent Alias

Namespace: AWS/Bedrock/Agents

OpsRamp MetricAWS MetricMetric Display NameUnitAggregation TypeDescription
aws_bedrock_agents_InvocationCountInvocationCountInvocation CountCountSumNumber of agent invocations.
aws_bedrock_agents_TotalTimeTotalTimeTotal TimeMillisecondsAverageTotal execution time for agent invocations.
aws_bedrock_agents_TTFTTTFTTTFTMillisecondsAverageTime to first token.
aws_bedrock_agents_InputTokenCountInputTokenCountInput Token CountCountSumNumber of input tokens processed.
aws_bedrock_agents_OutputTokenCountOutputTokenCountOutput Token CountCountSumNumber of output tokens generated.
aws_bedrock_agents_InvocationThrottlesInvocationThrottlesInvocation ThrottlesCountSumNumber of throttled agent invocations.
aws_bedrock_agents_InvocationClientErrorsInvocationClientErrorsInvocation Client ErrorsCountSumNumber of client-side invocation errors.
aws_bedrock_agents_InvocationServerErrorsInvocationServerErrorsInvocation Server ErrorsCountSumNumber of server-side invocation errors.

Guardrail

Namespace: AWS/Bedrock/Guardrails

OpsRamp MetricAWS MetricMetric Display NameUnitAggregation TypeDescription
aws_bedrock_guardrails_InvocationsInvocationsInvocationsCountSumNumber of guardrail invocations.
aws_bedrock_guardrails_InvocationLatencyInvocationLatencyInvocation LatencyMillisecondsAverageLatency of guardrail invocations.
aws_bedrock_guardrails_InvocationsIntervenedInvocationsIntervenedInvocations IntervenedCountSumNumber of invocations where guardrails intervened.
aws_bedrock_guardrails_TotalFindingsTotalFindingsTotal FindingsCountSumTotal number of findings detected by guardrails.
aws_bedrock_guardrails_TextUnitCountTextUnitCountText Unit CountCountSumNumber of text units processed by guardrails.
aws_bedrock_guardrails_InvocationClientErrorsInvocationClientErrorsInvocation Client ErrorsCountSumNumber of client-side invocation errors.
aws_bedrock_guardrails_InvocationServerErrorsInvocationServerErrorsInvocation Server ErrorsCountSumNumber of server-side invocation errors.
aws_bedrock_guardrails_InvocationThrottlesInvocationThrottlesInvocation ThrottlesCountSumNumber of throttled invocations.

External reference

Monitor Amazon Bedrock with Amazon CloudWatch