Minimal time-series metrics library that works with your existing database. Track counters, durations, and hierarchical data. All that in a single call.
# Track any metric with hierarchical values
Trifle::Stats.track(
key: 'orders',
at: Time.now,
values: {
count: 1,
revenue: 99.0,
country: { us: 1 },
channel: { web: 1 }
}
)
Built by developers for the AI age. Simple, focused, and works with what you already have.
Works with PostgreSQL, MongoDB, Redis, or SQLite. Use what you already have; no dedicated time-series database needed.
Add the library, configure your driver, and start tracking. No complex infrastructure, no steep learning curve.
One metrics key, MANY breakdown dimensions. Track count, revenue, category, channel and more; in a single call.
Data flows in, Trifle ensures correct tracking distribution. That makes it instantly queryable at any resolution.
From library to dashboard to CLI. Ready for humans or agents at any time.
The Core Library
Minimal time-series metrics library available in Ruby, Elixir, and Go. Drop it into your existing app, configure your database driver, and start tracking metrics in minutes.
# Gemfile
gem 'trifle-stats'
# config/initializers/trifle.rb
Trifle::Stats.configure do |c|
c.driver = Trifle::Stats::Driver::Postgres.new
c.granularities = ['10m', '1h', '1d']
end
Visual Dashboard & Automation
The visual layer for your metrics. Build interactive dashboards, set up alerts, and schedule daily digests. All without writing single line of code. Non-technical team members can explore data independently.
Command-line Power
Query metrics from your terminal. Works with Trifle App API and gives power to AI Agents to query metrics while having context of your code. Need something quick? A local zero config SQLite driver gets you started instantly.
$ trifle query orders --from 7d --granularity day
KEY DATE COUNT REVENUE
orders 2024-01-24 142 14,058.00
orders 2024-01-25 156 15,444.00
orders 2024-01-26 128 12,672.00
...
$ trifle mcp-server --driver sqlite
MCP server running on stdio...
Two ways to use Trifle App — pick what works best for your team.
Self-hosted on your infrastructure
Deploy Trifle on your own servers and connect your own database. Full control over your data with no limits.
Managed by Trifle
We handle everything — infrastructure, updates, and storage. Just sign up and start tracking.
When you need to track many variables under the same key with breakdowns by any dimension.
Track orders, revenue, and refunds by country, channel, and product. Know exactly where your money comes from at a glance.
Track job duration, success rates, and outcomes across worker types. Spot failing pipelines before they become incidents.
Understand adoption patterns across user segments and platforms. See what's working without manually combing through data.
Track what APM tools can't see. External API usage per user, business logic outcomes, third-party service states; the metrics only your code knows.
Signups, conversions, churn across cohorts and campaigns. Automatic rollups from minutes to quarters.
Track token usage, latency, and costs per model and prompt. MCP-ready so agents can monitor themselves.
Self-host for free or let us handle the infrastructure.
Your infrastructure
1 user included
3 users, then $/user/month
Per-user with AI features
Cloud-managed metrics storage. Submit via API, we handle storage and aggregation.
Start with the library in your language, add the App when you need dashboards, or jump straight to self-hosted.