Plugin uses wrong field when writing metrics to InfluxDB
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
调研方向
Start by tracing the plugin's InfluxDB metric-writing path and compare its verbose-log output with the sitespeed core example. Use the Lighthouse and Grafana examples as references; done means the emitted metrics use the intended measurement or series field rather than relying on the audit tag.
由索引模型根据 Issue 内容生成。
描述
Hi there. I noticed that the plugin writes its metrics to InfluxDB differently than the core sitespeed app. This way you have to query the data in very unorthodox ways. See difference in sitespeed verbose log:
Sitespeed core:
(correctly uses series name for the measurement)
{
"tags": {
"device": "desktop",
"stage": "produktion",
"origin": "browsertime",
"summaryType": "summary",
"connectivity": "native",
"browser": "chrome",
"group": "www_enbw_com",
"testName": "www_enbw_com"
},
"seriesName": "firstPaint",
"point": {
"time": 1630409179532,
"median": 483
}
},
Lighthouse plugin:
(uses extra "audit" tag for the actual series name...and the series name is the unit???)
{
"tags": {
"audit": "first-contentful-paint",
"device": "desktop",
"stage": "produktion",
"origin": "lighthouse",
"summaryType": "pageSummary",
"page": "_unternehmen_",
"group": "www_enbw_com",
"testName": "www_enbw_com"
},
"seriesName": "numericValue",
"point": {
"time": 1630409179532,
"value": 1454.0010000000002
}
},
Also see the difference in Grafana query:

Any chance, this will be fixed in the future?
Cheers!
- 主要语言
- JavaScript
- 星标
- 31
- 派生
- 21
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
sitespeedio/plugin-lighthouse 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 42/100
sitespeedio/plugin-lighthouse#136 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
sitespeedio/plugin-lighthouse#134 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
sitespeedio/plugin-lighthouse#133 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
sitespeedio/plugin-lighthouse#126 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
sitespeedio/plugin-lighthouse#120 · 7 条评论 ·
查看 sitespeedio/plugin-lighthouse 的全部 Issue
相似的 Issue
-
[Bug] Composer can submit an IME confirmation when keyCode is 229 but isComposing is false可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
apache/rocketmq-dashboard#6067 ·
维护者通常 4 天内回复
-
severity: low
难度 2/5 1-3 小时 新手友好度 70/100
luainkernel/lunatik#1853 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
factory-active factory-automatic harness/claude-code task-identify-harness-labels-done task-identify-issue-type-done
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复