Feature Request: Support selecting columns from resulting data in query
还没有人认领这个 Issue。
评估
调研方向
Issue 中没有指定文件或测试。首先追踪 Issues 和 Pull Requests 的查询结果如何转换为数据帧,然后将该输出与所链接 Grafana 表达式的要求进行比较。完成标准是:可以从生成的数据中选择请求的字段用于告警规则,并且该行为有适当的测试覆盖。
由索引模型根据 Issue 内容生成。
描述
I'd like to use the Grafana expression language to write alerting rules based on the output of the Github Datasource. Right now I can't because:
Currently, the only non-time series format (number) is supported when you’re using data frames and you have a table response that returns a data frame with no time, string columns, and one number column
Queries for Issues and Pull Requests return at least one numeric field, and several other fields that aren't appropriate for labels. I'd like to be able to get data equivalent to this SQL call:
SELECT pull_request.open_time, pull_request.author FROM pull_request WHERE pull_request.open is TRUE;
Perhaps this could be done in the plugin by dropping fields from the data frames until only the requested fields remain?
- 主要语言
- Go
- 星标
- 311
- 派生
- 72
- 平均合并
- 2 天 9 小时
- 30 天内合并 PR
- 2
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
grafana/github-datasource 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
grafana/github-datasource#796 · 2 条评论 ·
-
Bug: Workflow_Runs query type consistently returns 0 rows when same URL+token directly returns data未关闭
难度 4/5 3-5 天 新手友好度 52/100
grafana/github-datasource#774 ·
-
难度 3/5 1-2 天 新手友好度 72/100
grafana/github-datasource#760 ·
-
难度 4/5 3-5 天 新手友好度 35/100
grafana/github-datasource#528 · 4 条评论 ·
-
难度 4/5 3-5 天 新手友好度 12/100
grafana/github-datasource#523 ·
查看 grafana/github-datasource 的全部 Issue
相似的 Issue
-
needs_triage
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 2 天内回复
-
kind/bug
难度 2/5 1-3 小时 新手友好度 70/100
kubernetes-sigs/cluster-api-provider-ibmcloud#3023 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug]: message-level cache_control on chat messages is dropped, so Anthropic prompt caching never triggers可能已有人在做 @Atharva-Kanherkar 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 80/100
维护者通常 1 天内回复
-
documentation good first issue help wanted
难度 2/5 1-3 小时 新手友好度 90/100
eugenioenko/ttt#1000 ·
维护者通常 1 天内回复
-
bug needs-acceptance wg/developer-experience-ecosystem
难度 2/5 1-3 小时 新手友好度 82/100
vllm-project/semantic-router#5249 ·
维护者通常 1 天内回复