mma-investigator
Skill by cockroachdb
Investigates Multi-Metric Allocator (MMA) behavior on a CockroachDB cluster over a set time window. Helps oncall engineers see why rebalancing did or did not happen.
Install mma-investigator
Built from the published package, never by AI.
git clone --depth 1 https://github.com/cockroachdb/cockroach /tmp/cockroach && mkdir -p ~/.claude/skills && cp -r /tmp/cockroach/pkg/kv/kvserver/allocator/mmaprototype/.claude/skills/mma-investigator ~/.claude/skills/mma-investigatorRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/cockroachdb/cockroach /tmp/cockroach && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/cockroach/pkg/kv/kvserver/allocator/mmaprototype/.claude/skills/mma-investigator ~/.gemini/antigravity-cli/skills/mma-investigatorAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The mma-investigator skill investigates MMA (Multi-Metric Allocator) behavior on a single CockroachDB cluster over a specific time window. It checks how balanced CPU, write bandwidth, disk, replicas and leases are across stores and nodes, then builds a timeline of rebalancing activity. It starts with Datadog metrics, then searches MMA logs on the KvDistribution channel, and can also analyze logs a user pastes or uploads.
It can read CockroachDB source code using a companion MMA_REFERENCE.md and search GitHub for related issues and PRs when needed. The skill asks for a cluster identifier and time window before it starts. It is written for oncall engineers who need to understand why MMA did or did not act, and it reports findings with links to dashboards and log searches.
Written from the project's SKILL.md and checked against it.
What it can do
- Scope an investigationAsks for a cluster identifier and time window before running any queries.
- Assess cluster balanceChecks CPU, write bandwidth, disk, replica count and lease count across stores and nodes.
- Build a rebalancing timelineIdentifies periods of rebalancing activity and likely triggers, with metric evidence.
- Search MMA logsQueries Datadog logs on the KvDistribution channel for rebalancing passes and outcomes.
- Analyze user-provided logsParses pasted or uploaded MMA log output, including overloaded stores and candidate evaluation.
- Read source codeNavigates the CockroachDB source code when observational data does not explain behavior.
- Search GitHubLooks up related MMA issues and pull requests after the cluster state is understood.
- Troubleshoot missing dataChecks metric prefixes, log storage tier, tag names and time ranges when queries return nothing.
What you need
- Datadog access with MCP tools
- Access to Flex tier logs in Datadog
- Access to the MMA Enriched dashboard
- CockroachDB source code for deep dives
- GitHub access for searching issues and PRs
Try asking
- Investigate MMA on cluster prod-east for the last 2 hours and summarize balance.
- Explain why MMA did not move leases off store 3 between 14:00 and 16:00 UTC.
- Analyze these MMA logs I pasted and tell me which stores were overloaded.
Good to know
- Each investigation covers one cluster and one time window.
- Most CockroachDB logs are only in Flex storage, so log queries must use the flex tier.
- Focuses on explaining system behavior rather than finding bugs.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: pkg/kv/kvserver/allocator/mmaprototype/.claude/skills/mma-investigator/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mma-investigator
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
mma-investigator: common questions
What does the MMA investigator skill do?
It investigates how MMA (Multi-Metric Allocator) behaved on a CockroachDB cluster over a set time window. It explains the cluster balance and why rebalancing did or did not occur.
Which data sources does it use?
It uses Datadog metrics first, then Datadog logs on the KvDistribution channel. It can also read the CockroachDB source code and search GitHub when needed.
Who is this skill for?
The source says it helps oncall engineers diagnose load imbalances and understand rebalancing decisions made by MMA.
How do I install mma-investigator?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mma-investigator free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is mma-investigator safe to use?
It scores 80 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mma-investigator?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
