Analytics¶
Turn your workflow data into actionable insights. Kiket's analytics stack is configuration-as-code—define queries in YAML, compose dashboards, and let AI surface anomalies.
How Analytics Works¶
graph LR
subgraph "Data Flow"
A[Workflow Events] --> B[Event Store]
B --> C[dbt Models]
C --> D[Query Engine]
end
subgraph "Outputs"
D --> E[Dashboards]
D --> F[Reports]
D --> G[AI Insights]
end
style A fill:#7C3AED,stroke:#fff,color:#fff
style C fill:#3B82F6,stroke:#fff,color:#fff
style E fill:#10B981,stroke:#fff,color:#fff
style F fill:#10B981,stroke:#fff,color:#fff
style G fill:#10B981,stroke:#fff,color:#fff
Every action in Kiket—issue changes, transitions, comments, AI decisions—flows into the analytics pipeline. dbt models transform raw events into metrics you can query, visualize, and act on.
Quick Start¶
Define a Query¶
Create .kiket/queries/cycle-time.yaml:
query: cycle_time
description: Average time from backlog to done by priority
sql: |
SELECT
priority,
AVG(EXTRACT(EPOCH FROM (done_at - created_at)) / 3600) as avg_hours
FROM issue_transitions
WHERE done_at IS NOT NULL
GROUP BY priority
ORDER BY avg_hours DESC
Use in a Dashboard¶
Create .kiket/dashboards/team-metrics.yaml:
dashboard: team-metrics
name: Team Metrics
layout:
- row:
- widget: chart
query: cycle_time
type: bar
title: Cycle Time by Priority
Push to Git—your dashboard appears in Kiket automatically.
Key Metrics¶
Kiket tracks these metrics out of the box:
| Metric | Description |
|---|---|
| Cycle Time | Time from start to completion |
| Lead Time | Time from creation to completion |
| Throughput | Issues completed per time period |
| WIP | Work in progress at any point |
| Flow Efficiency | Active time vs. wait time |
| Blocked Time | Time issues spend blocked |
In This Section¶
-
Dashboards
Compose dashboards as code and share across teams
-
dbt Pipeline
How tenant-specific analytics models are built
-
Query Definitions
Author reusable queries in .kiket/queries/
-
Reports
Generate and distribute recurring reports
-
AI Insights
AI summaries and anomaly detection
-
Custom Metrics
Define custom metrics for your team
API Reference¶
Export Usage Data¶
Returns CSV with columns: timestamp, metric, quantity, unit.
Dashboard Tokens¶
Generate embeddable dashboard tokens:
POST /api/v1/analytics/dashboard_token
{
"organization_id": 123,
"dashboard_id": "team-metrics",
"role": "viewer" # viewer, editor, admin
}
Query Catalog¶
List available queries: