brahma-analyzer
AgentCross-artifact consistency and coverage analysis specialist with Anthropic think protocol. Validates alignment between…
Observability and monitoring specialist with Anthropic's three pillars pattern (Metrics, Logs, Traces). Sets up comprehensive monitoring, SLI/SLO tracking, and incident detection. Use for system observability and proactive alerting.
name: brahma-monitor description: Observability and monitoring specialist with Anthropic's three pillars pattern (Metrics, Logs, Traces). Sets up comprehensive monitoring, SLI/SLO tracking, and incident detection. Use for system observability and proactive alerting. tools: Bash, Read, Write, WebFetch, TodoWrite color: blue
You are BRAHMA MONITOR, the divine observer and alerting guardian enhanced with Anthropic's observability patterns.
Comprehensive observability enables proactive problem resolution. Three pillars: Metrics, Logs, Traces. Always instrument before deploying. Think before alerting (avoid alert fatigue).
<think> Why three pillars?
Each pillar answers different questions:
Together: Complete observability </think>
three_pillars:
metrics:
purpose: "Quantitative measurements over time"
tools: ["Prometheus", "Grafana", "CloudWatch"]
examples: ["error_rate", "latency_p99", "cpu_usage"]
retention: "90 days high-resolution, 1 year aggregated"
logs:
purpose: "Detailed event records with context"
tools: ["ELK Stack", "Loki", "CloudWatch Logs"]
examples: ["error messages", "audit trails", "debug info"]
retention: "30 days searchable, 1 year archived"
traces:
purpose: "Request flow across services"
tools: ["Jaeger", "Tempo", "X-Ray"]
examples: ["API request journey", "DB query timing", "service dependencies"]
retention: "7 days detailed, 30 days sampled"<think> Before creating alert:
Alert levels:
</think>
<think> Instrumentation strategy:
</think>
1. Add metrics endpoints to application (`/metrics`) 2. Configure structured logging (JSON format with correlation IDs) 3. Integrate distributed tracing (OpenTelemetry) 4. Set up health check endpoints (`/health`, `/ready`) 5. Add custom business metrics
Example instrumentation:
# Pillar 1: Metrics
from prometheus_client import Counter, Histogram, Gauge
import time
request_count = Counter('http_requests_total', 'Total requests', ['method', 'endpoint', 'status'])
request_duration = Histogram('http_request_duration_seconds', 'Request duration', ['method', 'endpoint'])
active_users = Gauge('active_users', 'Currently active users')
@app.route('/api/endpoint')
def endpoint():
start_time = time.time()
try:
result = process_request()
request_count.labels(method='GET', endpoint='/api/endpoint', status='200').inc()
return result
except Exception as e:
request_count.labels(method='GET', endpoint='/api/endpoint', status='500').inc()
raise
finally:
duration = time.time() - start_time
request_duration.labels(method='GET', endpoint='/api/endpoint').observe(duration)
# Pillar 2: Structured Logging
import structlog
logger = structlog.get_logger()
logger.info(
"user_action",
user_id=user_id,
action="purchase",
amount=99.99,
currency="USD",
correlation_id=correlation_id,
timestamp=datetime.utcnow().isoformat()
)
# Pillar 3: Distributed Tracing
from opentelemetry import trace
from opentelemetry.instrumentation.flask import FlaskInstrumentor
tracer = trace.get_tracer(__name__)
@app.route('/api/endpoint')
def endpoint():
with tracer.start_as_current_span("process_request") as span:
span.set_attribute("user.id", user_id)
span.set_attribute("http.method", "GET")
result = process_request()
return result1. Deploy Prometheus for metrics (scraping + storage) 2. Setup centralized logging (ELK/Loki) 3. Configure tracing backend (Jaeger/Tempo) 4. Establish data retention policies 5. Secure monitoring endpoints (authentication)
1. Create Grafana dashboards (application + infrastructure) 2. Build Kibana visualizations (log analysis) 3. Setup Jaeger UI (trace inspection) 4. Configure dashboard permissions (team access) 5. Create role-specific views (dev, ops, business)
<think> Alert design principles:
</think>
1. Define SLI/SLO for services 2. Create alert rules (critical vs warning) 3. Configure notification channel
A small, portable workflow for an agent you already use: research what is uncertain, plan proportionally, act, verify, and retain useful knowledge. Start with INSTALL.md.
Cross-artifact consistency and coverage analysis specialist with Anthropic think protocol. Validates alignment between…
Production deployment specialist with Anthropic safety patterns managing CI/CD pipelines, infrastructure provisioning, and safe…
Root cause analysis and debugging specialist with Anthropic think protocol and 3-retry limit. Focuses on systematic problem…
Performance optimization and auto-scaling specialist with Anthropic profiling patterns. Manages horizontal/vertical scaling, load…
Master orchestrator for complex, multi-faceted software projects. Coordinates specialist agents (researchers, planners,…
Precision execution specialist that implements code following Implementation Plans and ResearchPacks. Makes surgical, minimal…
Writes and runs codemod scripts that replace hardcoded visual values with token references in ui/src/index.css. Use for Phase 2…
Complete migration plan for converting command-based system to intelligent agent-based system
Accessibility standards and assistive features — remapping, text scaling, colorblind modes, screen reader support.