# BetterDB > BetterDB is a Valkey-first observability and monitoring platform for Valkey > and Redis. It provides real-time monitoring, historical slowlog and > COMMANDLOG analysis, client-level attribution, anomaly detection, hot-key > tracking, capacity forecasting, cluster monitoring, ACL audit trails, and > AI-assisted database investigation via MCP. Unlike snapshot-only tools, it > persists history so operators can investigate incidents after they happen. > BetterDB also ships an MIT-licensed AI SDK (agent memory, semantic caching, > and retrieval) built on open-source Valkey. Both are open-core products of > BetterDB Inc., a public benefit company. ## Monitor (Valkey & Redis observability) - [Valkey monitoring](https://www.betterdb.com/valkey-monitoring): what Valkey monitoring is, what to monitor, and how BetterDB does it - including Valkey-native COMMANDLOG (Valkey 8.1+), CLUSTER SLOT-STATS (Valkey 8.0+), and per-thread CPU/I/O metrics - [Redis monitoring](https://www.betterdb.com/redis-monitoring): persistent slowlog, command history, and client analytics for Redis 6+ - [Anomaly detection](https://www.betterdb.com/monitor/anomalies): automatic baseline learning, correlated events, and plain-English diagnoses - no manual thresholds - [Self-hosting quickstart](https://www.betterdb.com/#self-host): Docker, Helm, and npm CLI installs; runs fully offline in air-gapped environments - [GitHub repository](https://github.com/BetterDB-inc/monitor): source, Docker/Helm/npm distribution, and technical README - [Documentation](https://docs.betterdb.com): configuration, Prometheus metrics (100+), OpenTelemetry, MCP server (60 tools), managed providers (ElastiCache, MemoryDB, Redis Cloud, Upstash) - [Live Grafana demo](https://demo-grafana.app.betterdb.com/): public Grafana instance with BetterDB dashboards fed by both the Prometheus endpoint and the OTLP metrics mirror - no signup required ## Learn (technical guides) - [Valkey COMMANDLOG monitoring](https://www.betterdb.com/valkey-commandlog): how COMMANDLOG (Valkey 8.1+) extends SLOWLOG with large-request and large-reply tracking, and how BetterDB persists and analyzes it by pattern - [Valkey anomaly detection](https://www.betterdb.com/valkey-anomaly-detection): how baseline learning, Z-score analysis, correlation, and pattern diagnosis work - and why static thresholds miss leaks, thrashing, and attacks - [AI-native Valkey monitoring](https://www.betterdb.com/ai-valkey-monitoring): the 60-tool MCP server for Claude/Cursor, OTLP trace correlation, vector search observability, and supervised cache tuning - [Anomaly pattern catalog](https://www.betterdb.com/monitor/anomalies): every pattern BetterDB detects, with triggers and operational meaning - [Valkey slowlog monitoring](https://www.betterdb.com/valkey-slowlog-monitoring): why the in-memory slowlog rotates away during incidents, how to configure it, and how BetterDB persists and pattern-analyzes it - [Valkey cluster monitoring](https://www.betterdb.com/valkey-cluster-monitoring): topology, slot distribution, migrations, replication, failovers, and per-slot load via CLUSTER SLOT-STATS heatmaps - [Valkey hot key monitoring](https://www.betterdb.com/valkey-hot-keys): hot vs big keys, detection approaches and their tradeoffs, top-50 tracking with rank movement - [Valkey vector search monitoring](https://www.betterdb.com/valkey-vector-search-monitoring): FT.SEARCH observability for valkey-search and RediSearch - per-index health, p50/p95/p99 latency, SLA alerts - [Self-hosted Valkey monitoring](https://www.betterdb.com/self-hosted-valkey-monitoring): Docker, Helm/Kubernetes, and npm CLI installs; SSH tunnels, VPC agent, and fully air-gapped operation - [Valkey monitoring with Prometheus](https://www.betterdb.com/valkey-prometheus-monitoring): 100+ betterdb_* metrics including slowlog/COMMANDLOG patterns, SLOT-STATS, anomalies, and forecasts; scrape config and nine ready-made Alertmanager rules - [Valkey OpenTelemetry integration](https://www.betterdb.com/valkey-opentelemetry): OTLP in both directions - trace ingest with live-Valkey-state correlation, plus metrics and event export to any collector ## Compare & decide - [When to use BetterDB](https://www.betterdb.com/when-to-use-betterdb): honest decision guide - when BetterDB fits and when Prometheus/Grafana, Redis Insight, or a commercial APM is the better choice - [BetterDB vs Prometheus + Grafana](https://www.betterdb.com/betterdb-vs-prometheus-grafana): complementary, not competing - BetterDB exposes 100+ Prometheus metrics and adds database-specific investigation - [BetterDB vs redis_exporter](https://www.betterdb.com/betterdb-vs-redis-exporter): when BetterDB can replace redis_exporter as the Prometheus source, when to keep the exporter, and a redis_* to betterdb_* metric mapping - [BetterDB vs Redis Insight](https://www.betterdb.com/betterdb-vs-redis-insight): Insight is interactive exploration/administration; BetterDB is operational monitoring with persistent history - [BetterDB vs CloudWatch](https://www.betterdb.com/betterdb-vs-cloudwatch): CloudWatch covers AWS infrastructure health; BetterDB adds command-, key-, and client-level visibility for ElastiCache and MemoryDB ## Monitoring deep dives (blog) - [Prometheus metrics for Valkey](https://www.betterdb.com/blog/valkey-prometheus-metrics): the metrics BetterDB exports and how to use them - [Air-gapped monitoring](https://www.betterdb.com/blog/air-gapped-monitoring-valkey-redis): running fully offline with signed license tokens - [Debugging Valkey with MCP](https://www.betterdb.com/blog/debugging-valkey-with-mcp): letting AI assistants investigate database health - [CloudWatch vs BetterDB during an incident](https://www.betterdb.com/blog/debugging-an-incident-cloudwatch-vs-betterdb): debugging an ElastiCache incident with each tool - [Vector & AI workload monitoring](https://www.betterdb.com/blog/vector-ai-monitoring): FT.SEARCH observability for valkey-search and RediSearch - [Metric forecasting](https://www.betterdb.com/blog/metric-forecasting): projected time-to-ceiling for memory, ops/sec, CPU, and fragmentation - [OpenTelemetry in both directions](https://www.betterdb.com/blog/otel-both-directions-monitor): OTLP trace ingest and metrics/event export ## AI SDK (agent memory, caching, retrieval) - [AI SDK overview](https://betterdb.ai): agent memory, semantic cache, agent cache, and retrieval for AI agents on open Valkey - [Agent memory](https://betterdb.ai/#memory): long-term memory your agent keeps across sessions, scoped and ranked by what matters - [Semantic cache](https://betterdb.ai/#semantic-cache): catch paraphrased prompts and return answers from Valkey in under a millisecond - [Agent cache](https://betterdb.ai/#ai-sdk-caching): exact-match caching for LLM calls, tool results, and session state across frameworks - [Observability](https://betterdb.ai/#observability): every cache operation emits an OpenTelemetry span and updates Prometheus metrics - [Comparisons](https://betterdb.ai/ai/comparison): how BetterDB compares to Mem0, Zep, Redis Iris, RedisVL, and Pinecone ## Migrate - [Migrate from Redis](https://www.betterdb.com/migrate): move to open-source Valkey with live migration - analysis, execution, and validation ## More - [Pricing](https://www.betterdb.com/pricing): plans and open-core details; Pro features are free during early access - [Blog](https://www.betterdb.com/blog): articles on Valkey monitoring, AI memory, and caching - [VS Code extension](https://marketplace.visualstudio.com/items?itemName=betterdb.betterdb-for-valkey): lightweight Valkey database management with server health metrics