简体   繁体   English

如何从Elasticsearch数据源制作grafana中的累积和图?

[英]How can I make a cumulative sum graph in grafana, from an elasticsearch data source?

Relevant info: 相关信息:

  • Grafana v5.4.2 (commit: d812109) Grafana v5.4.2(commit:d812109)
  • ElasticSearch version: 5.6.8 ElasticSearch版本:5.6.8

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.

相关问题 带有Elasticsearch数据源的Grafana - Grafana with elasticsearch data source 如何使用Grafana中的Prometheus数据源监视弹性搜索 - How to monitor elasticsearch with Prometheus data source in Grafana 从 Elasticsearch 数据源获取 Grafana 中的最新元素 - Get most recent element in Grafana from an Elasticsearch data source 如何使用 Elasticsearch 数据源在 Grafana 中可视化百分比指标? - How to visualize a percentage metric in Grafana using Elasticsearch data source? 带有AWS Elasticsearch数据源的Grafana在phantomjs中不起作用 - Grafana with aws elasticsearch data source not working in phantomjs 使用 Elasticsearch 数据源的 Grafana 中没有可用的指标 - No metrics available in Grafana with Elasticsearch data source 如何使用 Elasticsearch 数据源在 Grafana 中使用非时间序列数据 label x 轴? - How to label x-axis with non-time series data in Grafana with Elasticsearch data source? 如何仅从 ElasticSearch 的源中获取内部字段? - how can I fetch only inner fields from source in ElasticSearch? 如何使用 Elasticsearch 数据源获取 Grafana 中字段的每个不同值的最后一个条目 - How to get last entry for each distinct value of a field in Grafana with an Elasticsearch data source 我需要一个 Elasticsearch 查询来在 Grafana 中显示数据 - I need an Elasticsearch query to display data in Grafana
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM