Quickstart
Get from zero to reliability-checked metrics in 5 minutes.
1. Install
bash
pip install onlymetrixRequires Python 3.9+.
2. Get an API Key
Sign up at app.onlymetrix.com (free, no card required).
Set your API key:
bash
export OMX_API_KEY=omx_sk_...3. Connect Your Warehouse
bash
omx setup connect-warehouse \
--type postgres \
--host localhost \
--database analytics \
--user readonly \
--password yourpasswordSupported: PostgreSQL, Snowflake, ClickHouse.
4. Sync Your Metrics
From dbt:
bash
dbt compile
omx dbt syncFrom Omni:
bash
omx omni sync --project-dir ~/omni-modelsFrom raw SQL:
bash
omx sql convert "SELECT SUM(amount) FROM orders WHERE status = 'paid'" --import5. Check Reliability
bash
omx reliability checkMETRIC RELIABILITY STATUS
7 healthy 4 degraded 0 unreliable 11 total
Validation: 11 passing 3 failing 0 warning 22 tests6. Run Validation Tests
bash
omx validation runVALIDATION RESULTS — 22 tests
11 passing 3 failing 0 warning
FAIL total_revenue · Non-negative values
|-- Rows affected: 7,901 (17.6% of 44,876)
`-- Inspect: SELECT * FROM invoices WHERE total_amount < 0 LIMIT 107. Investigate with the Agent
bash
omx agent "why is total_revenue degraded?" --explainThe agent runs reliability checks, queries metrics, and narrates the root cause — all from governed data.
Next Steps
- Core Concepts — IR, reliability, validation
- CLI Reference — full command list
- Python SDK — programmatic access
- dbt Integration — sync from dbt
- Omni Integration — sync from Omni