grafana / grafana

The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
https://grafana.com
GNU Affero General Public License v3.0
64.96k stars 12.12k forks source link

KairosDB plugin adding unwanted avg aggregator #6163

Closed dvenza closed 8 years ago

dvenza commented 8 years ago

Grafana 3.1.1-1470047149 (ubuntu trusty)

I'm plotting data from KairosDB related to host status (cpu, memory, etc.)

I'm trying to generate sums, for example sum all CPU usage for all hosts of a particular subset, so that we can have a nice line that says how much load is there for real. I do not want an average.

This is the query I build: capture

The plot shows something that is not a sum, more like an average. If I look at the request in the browser I see this:

{"metrics":
  [
    {
     "name":"cpu",
     "aggregators": [
       {"name":"avg", "align_sampling":true, "sampling":{"value":"15","unit":"seconds"} },
       {"name":"sum","sampling":{"value":"10","unit":"seconds"}, "align_sampling":true }
  ],
  "tags":{"host":["bf1","bf2","bf3","bf4"],"cpu":["cpu0","cpu-total"]}}],
  "cache_time":0,
  "start_relative":{"value":"3","unit":"hours"},"end_relative":{"value":"1","unit":"minutes"}
}

There is my sum aggregator, but there is also an avg aggregator with an interval of 15 seconds that I have never defined. The downsampling is also set to (NONE)

Any hint?

torkelo commented 8 years ago

Please open an issue in the KairosDB plugin repo