[英]How can I make a cumulative sum graph in grafana, from an elasticsearch data source?
Relevant info: 相关信息:
There is an ES index that is a log of events over time, and the events are categorised (per country). 有一个ES索引,它记录了一段时间内发生的事件,并且对事件进行了分类(每个国家/地区)。 There is a grafana instance which has this ES index as a data source.
有一个grafana实例,该ES索引作为数据源。
In grafana, I would like to make a graph over time of these events, such that the value for any given date on the x-axis would be the total number of events since the beginning of time until that time, reflected on the y-axis. 在grafana中,我想绘制这些事件随时间变化的图表,以使x轴上任何给定日期的值都是自该时间开始到该时间为止的事件总数,并在y-轴。
Basically, a normal, ordinary cumulative-sum graph. 基本上,是一个普通的普通累加和图。
I have read several tutorials, and nothing actually allows this. 我已经阅读了几本教程,实际上没有任何内容允许这样做。 There is a lot of irrelevant information about showing cumulative sum on the tooltip, which is not useful to me.
关于在工具提示上显示累计金额有很多不相关的信息,这对我没有用。
Is this possible? 这可能吗? If so, how can I do it?
如果是这样,我该怎么办?
After contacting grafana directly I received the answer that this is not currently possible. 直接联系grafana后,我收到了当前无法实现的答案。 All such computation must be done by the data source, not by grafana.
所有这些计算必须由数据源完成,而不是由grafana完成。
Look at this page. 看这个页面。 https://grafana.com/docs/features/graphs/
https://grafana.com/docs/features/graphs/
Cumulative - Sum of series below plus the series you hover over 累积-以下系列的总和加上您要悬停的系列
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.