dora-metrics
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDORA Metrics
DORA指标
Generate DORA metrics reports using Harness Software Engineering Insights (SEI) via MCP.
通过MCP使用Harness软件工程洞察(SEI)生成DORA指标报告。
Instructions
操作说明
All DORA metrics are served by a single resource type: . Pass the parameter to select the variant:
sei_dora_metricmetricdeployment_frequencydeployment_frequency_drilldownlead_timechange_failure_ratechange_failure_rate_drilldownmttr
Required inputs on every DORA call: , , , (DAILY | WEEKLY | MONTHLY).
team_ref_iddate_startdate_endgranularity所有DORA指标由单一资源类型提供:。传入参数选择具体指标类型:
sei_dora_metricmetricdeployment_frequencydeployment_frequency_drilldownlead_timechange_failure_ratechange_failure_rate_drilldownmttr
每次调用DORA指标时的必填参数:、、、(DAILY | WEEKLY | MONTHLY)。
team_ref_iddate_startdate_endgranularityStep 1: Get a DORA Metric
步骤1:获取DORA指标
Deployment Frequency:
Call MCP tool: harness_get
Parameters:
resource_type: "sei_dora_metric"
metric: "deployment_frequency"
team_ref_id: "<team_id>"
date_start: "2026-03-01"
date_end: "2026-04-01"
granularity: "WEEKLY"Lead Time for Changes:
Call MCP tool: harness_get
Parameters:
resource_type: "sei_dora_metric"
metric: "lead_time"
team_ref_id: "<team_id>"
date_start: "2026-03-01"
date_end: "2026-04-01"
granularity: "WEEKLY"Change Failure Rate:
Call MCP tool: harness_get
Parameters:
resource_type: "sei_dora_metric"
metric: "change_failure_rate"
team_ref_id: "<team_id>"
date_start: "2026-03-01"
date_end: "2026-04-01"
granularity: "WEEKLY"Mean Time to Recovery:
Call MCP tool: harness_get
Parameters:
resource_type: "sei_dora_metric"
metric: "mttr"
team_ref_id: "<team_id>"
date_start: "2026-03-01"
date_end: "2026-04-01"
granularity: "WEEKLY"部署频率:
Call MCP tool: harness_get
Parameters:
resource_type: "sei_dora_metric"
metric: "deployment_frequency"
team_ref_id: "<team_id>"
date_start: "2026-03-01"
date_end: "2026-04-01"
granularity: "WEEKLY"变更前置时间:
Call MCP tool: harness_get
Parameters:
resource_type: "sei_dora_metric"
metric: "lead_time"
team_ref_id: "<team_id>"
date_start: "2026-03-01"
date_end: "2026-04-01"
granularity: "WEEKLY"变更失败率:
Call MCP tool: harness_get
Parameters:
resource_type: "sei_dora_metric"
metric: "change_failure_rate"
team_ref_id: "<team_id>"
date_start: "2026-03-01"
date_end: "2026-04-01"
granularity: "WEEKLY"平均恢复时间(MTTR):
Call MCP tool: harness_get
Parameters:
resource_type: "sei_dora_metric"
metric: "mttr"
team_ref_id: "<team_id>"
date_start: "2026-03-01"
date_end: "2026-04-01"
granularity: "WEEKLY"Step 2: Get Drilldown Data
步骤2:获取细分数据
Per-deployment detail for frequency:
Call MCP tool: harness_get
Parameters:
resource_type: "sei_dora_metric"
metric: "deployment_frequency_drilldown"
team_ref_id: "<team_id>"
date_start: "2026-03-01"
date_end: "2026-04-01"
granularity: "DAILY"Per-failure detail for CFR:
Call MCP tool: harness_get
Parameters:
resource_type: "sei_dora_metric"
metric: "change_failure_rate_drilldown"
team_ref_id: "<team_id>"
date_start: "2026-03-01"
date_end: "2026-04-01"
granularity: "DAILY"部署频率的单部署详情:
Call MCP tool: harness_get
Parameters:
resource_type: "sei_dora_metric"
metric: "deployment_frequency_drilldown"
team_ref_id: "<team_id>"
date_start: "2026-03-01"
date_end: "2026-04-01"
granularity: "DAILY"变更失败率的单失败详情:
Call MCP tool: harness_get
Parameters:
resource_type: "sei_dora_metric"
metric: "change_failure_rate_drilldown"
team_ref_id: "<team_id>"
date_start: "2026-03-01"
date_end: "2026-04-01"
granularity: "DAILY"Step 3: Get Team Data
步骤3:获取团队数据
List teams:
Call MCP tool: harness_list
Parameters:
resource_type: "sei_team"Get team details (integrations, developers, integration filters):
Call MCP tool: harness_list
Parameters:
resource_type: "sei_team_detail"
team_ref_id: "<team_id>"
aspect: "developers" # or "integrations" | "integration_filters"列出所有团队:
Call MCP tool: harness_list
Parameters:
resource_type: "sei_team"获取团队详情(集成信息、开发人员、集成过滤器):
Call MCP tool: harness_list
Parameters:
resource_type: "sei_team_detail"
team_ref_id: "<team_id>"
aspect: "developers" # 或 "integrations" | "integration_filters"Step 4: AI Metrics (Optional)
步骤4:AI指标(可选)
Call MCP tool: harness_get
Parameters:
resource_type: "sei_ai_adoption"Related: , , .
sei_ai_impactsei_ai_usagesei_ai_raw_metricCall MCP tool: harness_get
Parameters:
resource_type: "sei_ai_adoption"相关资源:、、。
sei_ai_impactsei_ai_usagesei_ai_raw_metricDORA Benchmarks
DORA基准值
| Metric | Elite | High | Medium | Low |
|---|---|---|---|---|
| Deployment Frequency | Multiple/day | Weekly-Monthly | Monthly-6mo | 6mo+ |
| Lead Time | < 1 hour | 1 day-1 week | 1-6 months | 6mo+ |
| Change Failure Rate | < 5% | 5-10% | 10-15% | > 15% |
| MTTR | < 1 hour | < 1 day | 1 day-1 week | 1 week+ |
| 指标 | 精英级 | 优秀级 | 中等 | 低水平 |
|---|---|---|---|---|
| 部署频率 | 每日多次 | 每周-每月 | 每月-半年 | 半年以上 |
| 变更前置时间 | < 1小时 | 1天-1周 | 1-6个月 | 半年以上 |
| 变更失败率 | < 5% | 5-10% | 10-15% | > 15% |
| MTTR | < 1小时 | < 1天 | 1天-1周 | 1周以上 |
Report Format
报告格式
undefinedundefinedDORA Metrics Report
DORA指标报告
Period: <date range>
Team: <team or org>
时间范围: <日期范围>
团队: <团队或组织>
Performance Summary
绩效摘要
| Metric | Value | Rating | Trend |
|---|---|---|---|
| Deployment Frequency | X/week | High | Improving |
| Lead Time | X hours | Elite | Stable |
| Change Failure Rate | X% | Medium | Needs attention |
| MTTR | X hours | High | Improving |
| 指标 | 数值 | 评级 | 趋势 |
|---|---|---|---|
| 部署频率 | X/周 | 优秀级 | 上升 |
| 变更前置时间 | X小时 | 精英级 | 稳定 |
| 变更失败率 | X% | 中等 | 需要关注 |
| MTTR | X小时 | 优秀级 | 上升 |
Overall Rating: <Elite/High/Medium/Low>
整体评级: <精英级/优秀级/中等/低水平>
Recommendations
建议
- CFR at X% - invest in test automation and code review
- Lead time trending up - look at PR review bottlenecks
- Consider feature flags to decouple deploy from release
undefined- 变更失败率达X% - 投入测试自动化与代码审核
- 前置时间呈上升趋势 - 排查PR审核瓶颈
- 考虑使用功能标志解耦部署与发布流程
undefinedSEI Resource Types
SEI资源类型
| Resource Type | Operations | Description |
|---|---|---|
| get (+ | All 6 DORA variants: deployment_frequency, deployment_frequency_drilldown, lead_time, change_failure_rate, change_failure_rate_drilldown, mttr |
| list, get | Team definitions |
| list (+ | Per-team sub-resources |
| list, get | Generic metrics |
| get | Productivity metrics |
| list, get | Organization structure |
| list, get | Org tree detail |
| get | Business alignment |
| get | AI adoption metrics |
| get | AI impact metrics |
| get | AI usage metrics |
| get | Raw AI metrics |
| 资源类型 | 操作 | 描述 |
|---|---|---|
| get(需传入 | 包含6种DORA指标类型:deployment_frequency、deployment_frequency_drilldown、lead_time、change_failure_rate、change_failure_rate_drilldown、mttr |
| list、get | 团队定义信息 |
| list(需传入 | 团队子资源详情 |
| list、get | 通用指标 |
| get | 生产力指标 |
| list、get | 组织架构 |
| list、get | 组织架构详情 |
| get | 业务对齐指标 |
| get | AI adoption指标 |
| get | AI impact指标 |
| get | AI usage指标 |
| get | 原始AI指标 |
Examples
示例
- "How are we doing on DORA metrics?" - Call four times with each primary
sei_dora_metricmetric - "Compare DORA across teams" - List , then call
sei_teampersei_dora_metricteam_ref_id - "What's our deployment frequency trend?" - Get with
sei_dora_metric, then drilldownmetric: deployment_frequency - "Show AI adoption metrics" - Get and related AI resources
sei_ai_adoption
- "我们的DORA指标表现如何?" - 调用四次,分别传入四个核心
sei_dora_metric参数metric - "跨团队对比DORA指标" - 先列出,再针对每个
sei_team调用team_ref_idsei_dora_metric - "我们的部署频率趋势如何?" - 先调用并传入
sei_dora_metric,再获取细分数据metric: deployment_frequency - "展示AI adoption指标" - 调用及相关AI资源
sei_ai_adoption
Performance Notes
性能注意事项
- Always pass ,
team_ref_id,date_start,date_end— these are required.granularity - Gather metrics across the full requested time range before generating the report. Partial data skews results.
- Compare metrics across multiple time periods to identify trends, not just snapshots.
- 必须传入、
team_ref_id、date_start、date_end这些必填参数granularity - 生成报告前需收集请求时间范围内的完整指标数据,部分数据会导致结果偏差
- 需对比多个时间段的指标以识别趋势,而非仅依赖快照数据
Troubleshooting
故障排查
No Metric Data
无指标数据
- Verify SEI integrations are configured (Git, CI/CD, issue tracking)
- Confirm belongs to an active SEI team (
team_ref_id)harness_list resource_type: sei_team - Check the date range covers data the integrations have ingested
- Allow time for data collection and calculation after new integrations are added
- 验证SEI集成已配置(Git、CI/CD、问题追踪工具)
- 确认属于活跃的SEI团队(可调用
team_ref_id检查)harness_list resource_type: sei_team - 检查日期范围是否覆盖集成工具已采集的数据
- 新增集成后需等待一段时间以完成数据收集与计算
Metrics Seem Incorrect
指标数据异常
- Verify deployment detection rules in SEI settings
- Check failure classification criteria
- Review team member mappings via
sei_team_detail aspect: developers
- 验证SEI设置中的部署检测规则
- 检查失败分类标准
- 通过查看团队成员映射关系
sei_team_detail aspect: developers