# Redis INFO MetricSet should provide commandstats

**URL:** <https://discuss.elastic.co/t/redis-info-metricset-should-provide-commandstats/66125>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [November 15, 2016, 2:05pm UTC](https://discuss.elastic.co/t/redis-info-metricset-should-provide-commandstats/66125 "2016-11-15T14:05:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SpoYler](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@SpoYler](https://discuss.elastic.co/u/SpoYler)\
**Post date:** [November 15, 2016, 2:05pm UTC](https://discuss.elastic.co/t/redis-info-metricset-should-provide-commandstats/66125/1 "2016-11-15T14:05:09Z")

</div>

Hy,

I'm looking for a good way to collecte redis stats.

Packetbeat provide command's stats and metricbeat the redis-cli info.

Have INFO ALL in metricbeat instead of INFO could make the job and let metricbeat alone to limit overhead.

Is this option a dream or it could be in the future ?

Thanks a lot

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [November 15, 2016, 2:47pm UTC](https://discuss.elastic.co/t/redis-info-metricset-should-provide-commandstats/66125/2 "2016-11-15T14:47:44Z")

</div>

It would definitely be possible to request `INFO all` instead of [`INFO default`](https://github.com/elastic/beats/blob/master/metricbeat/module/redis/info/info.go#L58) to get `commandstats` in the Redis info metricset.

I think it would be a relatively minor enhancement to make to the code if someone is interested in contributing a PR. Could you please open an enhancement [request](https://github.com/elastic/beats/issues/new) in the beats repo to add `commandstats` to the Redis info metricset.

---

<div class="post-metadata">

**Author:** ![SpoYler](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@SpoYler](https://discuss.elastic.co/u/SpoYler)\
**Post date:** [November 15, 2016, 3:08pm UTC](https://discuss.elastic.co/t/redis-info-metricset-should-provide-commandstats/66125/3 "2016-11-15T15:08:06Z")

</div>

Thanks ,

I've opened the request by following the link.

Unfortunetly my golang knowledges are very low so i hope someone could make it.

---

<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:** [December 13, 2016, 3:08pm UTC](https://discuss.elastic.co/t/redis-info-metricset-should-provide-commandstats/66125/4 "2016-12-13T15:08:38Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
