grafana系列(001)------ grafana安装及简单使用 TODO

grafana系列(001)------ grafana安装及简单使用 TODO
SELECT
count(id)
FROM
user_main
WHERE
delFlag = 0

grafana系列(001)------ grafana安装及简单使用 TODO
SELECT
$__timeGroupAlias(createTime, '1h'),
sum(fee) as value
FROM order_pay
GROUP BY 1
ORDER BY 1

grafana系列(001)------ grafana安装及简单使用 TODO

SELECT
UNIX_TIMESTAMP(DATE_FORMAT( createTime, "%Y-%m-%d" )) AS time,
SUM(fee) AS value,
'金额(元)' AS metric
FROM order_pay
WHERE
$__timeFilter(createTime)
group by UNIX_TIMESTAMP(DATE_FORMAT( createTime, "%Y-%m-%d" ))

上一篇:数据结构学习笔记001-String类(C++)


下一篇:小记001