Skip to content

Conversation

@agithomas
Copy link
Contributor

@agithomas agithomas commented Dec 26, 2025

  • Enhancement

Proposed commit message

Add alerting templates for memory, gateway, identity, browser tools, code interpreter components of Amazon Bedrock agentcore.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • Integration testing

How to test this PR locally

  • elastic-package build && elastic-package stack up -v -d --services package-registry

Screenshots

image

@agithomas agithomas marked this pull request as ready for review December 26, 2025 09:56
@agithomas agithomas requested a review from a team as a code owner December 26, 2025 09:56
@agithomas agithomas requested a review from muthu-mps December 26, 2025 09:56
@agithomas agithomas added Integration:aws_bedrock_agentcore Amazon Bedrock AgentCore Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] labels Dec 26, 2025
Copy link
Contributor

@gpop63 gpop63 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

"type": "alerting_rule_template",
"attributes": {
"name": "[AWS Bedrock AgentCore] Browser errors",
"tags": ["AWS", "Amazon Bedrock AgentCore", "Browser"],
Copy link
Contributor

@gpop63 gpop63 Jan 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

I think Muthu suggested keeping just the service name in tags e.g. AWS Bedrock AgentCore

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. However, I would like to see Browser, Gateway are high-level components rather than internal components such as memory, disk. So, including the names of these high-level components may not be wrong. But, considering the number of alert templates included presently is limited, I am opting out of adding the names of high-level components.

@elasticmachine
Copy link

💚 Build Succeeded

History

"timeWindowSize": 5,
"timeWindowUnit": "m",
"esqlQuery": {
"esql": "// Alert triggers when errors occur during AWS Bedrock AgentCore Browser operations.\n//\n// Browser tool enables agents to interact with web pages programmatically,\n// automating web-based tasks. Operations include:\n// - StartBrowserSession: Initiates a new browser automation session\n// - StopBrowserSession: Terminates a browser session\n// - ConnectBrowserAutomationStream: Establishes automation stream connection\n// - ConnectBrowserLiveViewStream: Establishes live view stream\n// - GetBrowserSession/ListBrowserSessions: Session management operations\n//\n// This alert monitors both user errors (4xx) and system errors (5xx).\n//\n// The alert is grouped by cloud account, region, and resource to pinpoint\n// specific browser sessions experiencing issues.\n//\n// To reduce alert noise, increase the threshold (e.g., `total_errors > 5`).\n// For more details, see: https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/browser.html\n\nFROM metrics-aws_bedrock_agentcore.metrics-*\n| WHERE aws.dimensions.Operation IN (\"StartBrowserSession\", \"StopBrowserSession\", \"ConnectBrowserAutomationStream\", \"ConnectBrowserLiveViewStream\", \"GetBrowserSession\", \"ListBrowserSessions\", \"UpdateBrowserStream\")\n| STATS total_user_errors = sum(aws.bedrock_agentcore.metrics.UserErrors.sum), total_system_errors = sum(aws.bedrock_agentcore.metrics.SystemErrors.sum) BY cloud.account.id, cloud.region, aws.dimensions.Resource\n| EVAL total_errors = COALESCE(total_user_errors, TO_LONG(0)) + COALESCE(total_system_errors, TO_LONG(0))\n| WHERE total_errors > 0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For more details, see: https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/browser.html

Do we need to link the documentation on metrics here? It is useful when there is a topic related to alerting rule metrics in the docs, but I don't see any mention about alerting metrics. WDYT?

Copy link
Contributor

@muthu-mps muthu-mps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left comment on the ES|QL query descriptions. Change looks good to me otherwise!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Integration:aws_bedrock_agentcore Amazon Bedrock AgentCore Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants