# How can I get the wkB/s reported by iostat

**URL:** <https://discuss.elastic.co/t/how-can-i-get-the-wkb-s-reported-by-iostat/352043>\
**Category:** Metrics\
**Created:** [January 30, 2024, 1:02am UTC](https://discuss.elastic.co/t/how-can-i-get-the-wkb-s-reported-by-iostat/352043 "2024-01-30T01:02:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aorona](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aorona/32/67827_2.png) [@aorona](https://discuss.elastic.co/u/aorona)\
**Post date:** [January 30, 2024, 1:02am UTC](https://discuss.elastic.co/t/how-can-i-get-the-wkb-s-reported-by-iostat/352043/1 "2024-01-30T01:02:52Z")

</div>

I am using elastic integrations to collect disk statistics

[https://docs.elastic.co/en/integrations/system#disk-io](https://docs.elastic.co/en/integrations/system#disk-io)

> **[Linux Metrics | Documentation](https://docs.elastic.co/integrations/linux#iostat)**
>
> Collect metrics from Linux servers with Elastic Agent.

I would like to plot amount of data read and written (`rkB/s` , `wkB/s` ) but I am running into some issues. When collecting system metrics with elastic agent..

system.diskio.write.bytes: The total number of bytes written successfully. On Linux this is the number of sectors written multiplied by an assumed sector size of 512.

When I monitor my system through the terminal this number only makes sense if a divide it by the report interval. So I assume its a counter that is reset at every interval. I would like to understand if this is the case and how I can graph it to derive the metrics. With lens, it is not immediately clear how to proceed.

With the beta linux integration, I get per-disk IO statistics which has my metric, but it is including all loop devices, which I do not want. So, I am trying to figure out a way to get the iostat data relevant to the disks I want to monitor.

With either approach is there documentation or a tutorial that can point me in the right direction? Its not intuitive to me how to proceed

---

<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:** [February 27, 2024, 1:03am UTC](https://discuss.elastic.co/t/how-can-i-get-the-wkb-s-reported-by-iostat/352043/2 "2024-02-27T01:03:31Z")

</div>

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