Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

Displaying CPU usage with Cyanite defaults to Sum #263

Open
leon-sagess opened this issue Jan 9, 2017 · 8 comments
Open

Displaying CPU usage with Cyanite defaults to Sum #263

leon-sagess opened this issue Jan 9, 2017 · 8 comments

Comments

@leon-sagess
Copy link

leon-sagess commented Jan 9, 2017

I have cyanite setup and I send metrics to it using collectd. From a setup perspective everything seems to work. My collectd config is attached.

The data in cassandra looks like this:

{path: 'collectd-86bc5667-a217-4dd0-ace5-0e7a3c6c6c75_node_com.cpu.1.cpu.idle', 
resolution: {precision: 5, period: 3600}} |
1483986635 |
{max: 1.6536e+08, mean: 1.6536e+08, min: 1.6536e+08, sum: 1.6536e+08}

collectd.zip

Now, my issue is that any query such as cpu.idle ends up being ignored by grafana. Instead the query it ends up graphing is on cpu.idle_sum.

Similarly, if I create a query on disk.io_time, the graph automatically appends _sum to it and it creates a graph for disk.io_time_sum.

Now, looking at the data in Cassandra, I realize that the actual cpu value and io_time values are not stored. Any reason why?

On the other had, the mean and min values are stored in cassandra. But still if I create a query disk.io_time_mean, then graph still displays a graph for disk.io_time_sum.

What am I missing? How do I create a graph that shows me the cpu progressing over time?

@ifesdjeen
Copy link
Collaborator

Now, looking at the data in Cassandra, I realize that the actual cpu value and io_time values are not stored. Any reason why?

Could you elaborate a bit? Usually they should be stored. Problem is that we reduce it to the mean.

Usually you have to get a dropdown where you could both fetch _sum, _mean _max and _mean..

@leon-sagess
Copy link
Author

Thanks for commenting. Indeed I get those suggestions in the dropdown. But no matter what i select, the graph's query is set to _sum. See attached screenshot. My query is idle_mean. But the graph is still idle_sum.

screen shot 2017-01-10 at 11 11 17 am

@ifesdjeen
Copy link
Collaborator

Oh, this is a bug. Thanks for the screenshot. I'll look into it (unless someone else wants to)

@leon-sagess
Copy link
Author

I would be very happy to test.

@leon-sagess
Copy link
Author

Hi Alex, when do you think you would have a chance to look at this?
Thx.

@ifesdjeen
Copy link
Collaborator

I hope to do it this week, trying to find time.

@leon-sagess
Copy link
Author

Thanks. I am looking forward to it. I have some pressure to demo cyanite.

@ifesdjeen
Copy link
Collaborator

I've tried several times, but so far I could not reproduce the issue. All the metrics are displayed with their correspondent counterpart. I'm afraid until we have a proper binary release it will be hard or impossible to make sure everyone's using a correct version...

screen shot 2017-02-06 at 20 09 48

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants