# Grafana, Elasticsearch, Logstash and graphing SNMP traffic stats

**URL:** <https://discuss.elastic.co/t/grafana-elasticsearch-logstash-and-graphing-snmp-traffic-stats/52140>\
**Category:** Elastic Community and Ecosystem\
**Created:** [June 8, 2016, 1:05am UTC](https://discuss.elastic.co/t/grafana-elasticsearch-logstash-and-graphing-snmp-traffic-stats/52140 "2016-06-08T01:05:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonh](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jasonh](https://discuss.elastic.co/u/jasonh)\
**Post date:** [June 8, 2016, 1:05am UTC](https://discuss.elastic.co/t/grafana-elasticsearch-logstash-and-graphing-snmp-traffic-stats/52140/1 "2016-06-08T01:05:53Z")

</div>

Hello all  
Newbie to this environ  
I'm trialling an ELK setup for log and performance stats  
I have  
Logstash with Collectd - poilling and pulling in stats - that works  
Then Elastic Search and on top of that Kibana and Grafana  
(not entirely sure this is the optimal setup but getting there)  
I can see the snmp counters that are being polled and they are visible in Kibana and Grafana  
My issue is how to graph them - so with ifoctets whats the query I need to actually produce a traffic graph as opposed to an ever increasing line  
As an example on my first attempt, and based on some quick googling, I am using  
"SELECT 8 \* (derivative (mean"value"),120s ) AS "value" FROM host: "[labswitch2.tnzi.com](http://labswitch2.tnzi.com)" AND collectd\_type: "$if\_octets" AND type\_instance: "FastEthernet1\_0\_21" WHERE "column" = 'rx' GROUP BY time"  
However all I can see if an ever increasing line. The info I have seen online advises to use a MEAN metric but I cant see that in my grafana interface.  
Any pointers gratefully received. Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 8, 2016, 1:09am UTC](https://discuss.elastic.co/t/grafana-elasticsearch-logstash-and-graphing-snmp-traffic-stats/52140/2 "2016-06-08T01:09:52Z")

</div>

I think this was posted in the wrong area, Graph is different from Grafana 🙂

---

<div class="post-metadata">

**Author:** ![jasonh](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jasonh](https://discuss.elastic.co/u/jasonh)\
**Post date:** [June 8, 2016, 1:15am UTC](https://discuss.elastic.co/t/grafana-elasticsearch-logstash-and-graphing-snmp-traffic-stats/52140/3 "2016-06-08T01:15:18Z")

</div>

Apologies - cant see a grafana group - should I just post it to the logstash general one?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 8, 2016, 1:16am UTC](https://discuss.elastic.co/t/grafana-elasticsearch-logstash-and-graphing-snmp-traffic-stats/52140/4 "2016-06-08T01:16:28Z")

</div>

I moved it to the Ecosystem area 🙂

---

<div class="post-metadata">

**Author:** ![jasonh](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jasonh](https://discuss.elastic.co/u/jasonh)\
**Post date:** [June 8, 2016, 1:29am UTC](https://discuss.elastic.co/t/grafana-elasticsearch-logstash-and-graphing-snmp-traffic-stats/52140/5 "2016-06-08T01:29:04Z")

</div>

Much appreciated

---

<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:44pm UTC](https://discuss.elastic.co/t/grafana-elasticsearch-logstash-and-graphing-snmp-traffic-stats/52140/6 "2017-07-06T13:44:11Z")

</div>


