【发布时间】:2019-12-11 17:05:15
【问题描述】:
我正在尝试使数据结构如下:
看起来像这样:
我正在使用 X 轴模式设置为系列的图形可视化。
我的查询是:
select
t.name as Value,
round(sum(i.points)/12, 1) as Metric
from
event e,
issue i,
team t
where
i.key = e.issue
and t.id = i.assignee
and e.type = 'Closed'
and t.role = 'DEVELOPER'
and e.date < (now() - interval '1 year')
group by Value
order by Metric
;
我已经阅读 Grafana 社区主题并修改我的查询好几天了。我可以更改查询/数据结构来完成这项工作。非常感谢您的帮助。
- Grafana 版本:v6.4.0 (c3b3ad4)
- PostgreSQL 版本:PostgreSQL 10.9 on x86_64-pc-linux-gnu,由 gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11) 编译,64 位
谢谢!
【问题讨论】:
标签: postgresql grafana