Skip to content

Enable ASG metrics collection#273

Open
Mike Deeks (mdeeks) wants to merge 4 commits into
mainfrom
cursor/enable-asg-metrics-8383
Open

Enable ASG metrics collection#273
Mike Deeks (mdeeks) wants to merge 4 commits into
mainfrom
cursor/enable-asg-metrics-8383

Conversation

@mdeeks

@mdeeks Mike Deeks (mdeeks) commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Description

Enable CloudWatch Auto Scaling group metrics collection for all Brainstore EC2 Auto Scaling Groups:

  • reader / dual-use Brainstore ASG
  • dedicated writer Brainstore ASG
  • dedicated fast-reader Brainstore ASG

Each ASG now sets metrics_granularity = "1Minute" and enables all metrics.

Context

Brainstore runs on EC2 Auto Scaling Groups, but group-level ASG metrics were not enabled in the module. Enabling these metrics improves visibility into desired/in-service/pending/terminating capacity and instance counts.

Testing

  • PATH="/tmp/terraform-bin:$PATH" terraform fmt -check -diff modules/brainstore-ec2/main.tf modules/brainstore-ec2/main-writer.tf modules/brainstore-ec2/main-fast-reader.tf
  • PATH="/tmp/terraform-bin:$PATH" terraform init -upgrade && PATH="/tmp/terraform-bin:$PATH" terraform validate
  • cd examples/braintrust-data-plane with temporary local-module main_override.tf, then PATH="/tmp/terraform-bin:$PATH" terraform init -upgrade && PATH="/tmp/terraform-bin:$PATH" terraform validate

Co-authored-by: Mike Deeks <mdeeks@users.noreply.github.com>
Co-authored-by: Mike Deeks <mdeeks@users.noreply.github.com>
Co-authored-by: Mike Deeks <mdeeks@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2eb0b0a3a4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread modules/brainstore-ec2/main.tf Outdated
Co-authored-by: Mike Deeks <mdeeks@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants