# Graphing Collectd Metrics in Kibana 4

**URL:** <https://discuss.elastic.co/t/graphing-collectd-metrics-in-kibana-4/37770>\
**Category:** Kibana\
**Created:** [December 22, 2015, 4:07pm UTC](https://discuss.elastic.co/t/graphing-collectd-metrics-in-kibana-4/37770 "2015-12-22T16:07:42Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ariceELK](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@ariceELK](https://discuss.elastic.co/u/ariceELK)\
**Post date:** [December 22, 2015, 4:07pm UTC](https://discuss.elastic.co/t/graphing-collectd-metrics-in-kibana-4/37770/1 "2015-12-22T16:07:42Z")

</div>

Hi,

Have collectd sending logs to Logstash but cant get the graphs for the metric value.

This is my search:  
type: "collectd" AND plugin: "memory" AND type\_instance: "used" AND value: ""

Is there a better way to search or create the graph ?

Thanks  
Aidan

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [December 22, 2015, 6:23pm UTC](https://discuss.elastic.co/t/graphing-collectd-metrics-in-kibana-4/37770/2 "2015-12-22T18:23:00Z")

</div>

Hi Aidan,

Maybe a bit more information would help me. What are the steps you're going through in Kibana?

Thanks,  
Lee

---

<div class="post-metadata">

**Author:** ![ariceELK](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@ariceELK](https://discuss.elastic.co/u/ariceELK)\
**Post date:** [December 22, 2015, 6:42pm UTC](https://discuss.elastic.co/t/graphing-collectd-metrics-in-kibana-4/37770/3 "2015-12-22T18:42:25Z")

</div>

Hi Lee,

First step is using Discovery menu to create a search but I don't have the correct syntax for getting the memory value ?

This is the search I'm trying to use:  
type: "collectd" AND plugin: "memory" AND type\_instance: "used" AND value: ??

If I try to use Dashboards it wants to use either a search or visualization which I don't have at the moment ?

Thanks  
Aidan

---

<div class="post-metadata">

**Author:** ![ariceELK](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@ariceELK](https://discuss.elastic.co/u/ariceELK)\
**Post date:** [December 22, 2015, 7:02pm UTC](https://discuss.elastic.co/t/graphing-collectd-metrics-in-kibana-4/37770/4 "2015-12-22T19:02:54Z")

</div>

Am I missing a plugin for Kibana to run the collectd graphs ?

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [December 23, 2015, 4:05am UTC](https://discuss.elastic.co/t/graphing-collectd-metrics-in-kibana-4/37770/5 "2015-12-23T04:05:44Z")

</div>

Hi Aidan,  
No, I don't think there's any plugin for collectd graphs.

I think you're right to stick to the Discover tab until you find you're getting the metrics you're looking for. Then go to Visualize to pick what kind of charts you want, and finally Dashboard to put those visualizations together.

When you go to Discover, I would enter each of your search criteria one at a time and watch the count of hits in the top right corner of the chart. If you add a search criteria and your hits go to 0 you know there's a problem.

And I think you might be doing something wrong on your last "value:??". The search is used to filter out the documents you want (not the data you want from those documents). Try leaving that off.  
Try instead to find the "value" field in the left pane on the discover tab and click [Add] on that. That should show you the data under the bar graph.

Save that search and then go to Visualize and select from that saved search.

Maybe a line chart would be good? On the Y-Axis change it from Count to Sum and then the Field selection list appears below it. Here you might pick "value" if that field has the memory used value.

The in the buckets pick X-Axis,  
Aggregation: Date Histogram  
Field: @timestamp (if you have that)  
Interval: Auto  
and click the green "Go" arrow

Does that show you anything like what you're looking for?

Lee

---

<div class="post-metadata">

**Author:** ![ariceELK](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@ariceELK](https://discuss.elastic.co/u/ariceELK)\
**Post date:** [December 23, 2015, 4:12pm UTC](https://discuss.elastic.co/t/graphing-collectd-metrics-in-kibana-4/37770/6 "2015-12-23T16:12:13Z")

</div>

Many thanks Lee, this worked just as you explained...

I just have one more issue, how to display the values as percentages particularly for cpu and memory ?

I have also noticed that the cpu value seem to be continuously increasing , can't see to figure it out. I'm using collectd version-5.5 installed from tar file.

This is my cpu aggregates plugin:

LoadPlugin aggregation

\<Plugin "aggregation"\>  
  
Plugin "cpu"  
Type "cpu"  
GroupBy "Host"  
GroupBy "TypeInstance"  
CalculateAverage true

LoadPlugin "match\_regex"

\<Chain "PostCache"\>  
  
  
Plugin "^cpu$"  
PluginInstance "^[0-9]+$"  
  
  
Plugin "aggregation"  
  
Target stop  
  
Target "write"

Thanks  
Aidan

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [December 30, 2015, 6:25pm UTC](https://discuss.elastic.co/t/graphing-collectd-metrics-in-kibana-4/37770/7 "2015-12-30T18:25:46Z")

</div>

Hi Aidan,  
I'm not sure what the issue is with the increasing values. Maybe you could paste 1 or 2 documents here so we could see the cpu data in them? I'll take a look at Collectd and see if I can easily set up a test.

Lee

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [December 30, 2015, 6:32pm UTC](https://discuss.elastic.co/t/graphing-collectd-metrics-in-kibana-4/37770/8 "2015-12-30T18:32:32Z")

</div>

Hi Aidan,  
I also found this post [https://mtalavera.wordpress.com/2015/02/16/monitoring-with-collectd-and-kibana/](https://mtalavera.wordpress.com/2015/02/16/monitoring-with-collectd-and-kibana/).  
It looks like it was done with older versions of Elasticsearch and Kibana but it might still give you the clues you need.

Lee

---

<div class="post-metadata">

**Author:** ![markd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markd/32/13290_2.png) [@markd](https://discuss.elastic.co/u/markd)\
**Post date:** [November 19, 2016, 4:05pm UTC](https://discuss.elastic.co/t/graphing-collectd-metrics-in-kibana-4/37770/9 "2016-11-19T16:05:22Z")

</div>

I am using RedHat 7 + kibana 5 + ES 5 + LS 5 and collectd and cannot get it to work.  
I am trying to graph a file system usage:

host:syssatpl1 && type\_instance:var

the selected field is - value

the search works but virtualization does not. By the way, is there a way to set the values of to Y axis or this is done automatically?

Thanks  
MarkD

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 20, 2016, 5:54am UTC](https://discuss.elastic.co/t/graphing-collectd-metrics-in-kibana-4/37770/10 "2016-11-20T05:54:43Z")

</div>

@markd Please start a new thread for your question.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:34pm UTC](https://discuss.elastic.co/t/graphing-collectd-metrics-in-kibana-4/37770/11 "2017-07-06T13:34:07Z")

</div>


