# Disk IO - How to visualize Max Disk Throughput

**URL:** <https://discuss.elastic.co/t/disk-io-how-to-visualize-max-disk-throughput/360803>\
**Category:** Kibana\
**Tags:** visualisation\
**Created:** [June 4, 2024, 4:02pm UTC](https://discuss.elastic.co/t/disk-io-how-to-visualize-max-disk-throughput/360803 "2024-06-04T16:02:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)\
**Post date:** [June 4, 2024, 4:02pm UTC](https://discuss.elastic.co/t/disk-io-how-to-visualize-max-disk-throughput/360803/1 "2024-06-04T16:02:17Z")

</div>

Hello is there a way to visualize the Disk Throughput using Lens?

I want to do a line graph but it seems like its not possible to do it with Lens.

Here's the fields:  
**`system.diskio.read.bytes`**

The total number of bytes read successfully. On Linux this is the number of sectors read multiplied by an assumed sector size of 512.

type: long

format: bytes

**`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.

type: long

format: bytes

**`system.diskio.read.time`**

The total number of milliseconds spent by all reads.

type: long

**`system.diskio.write.time`**

The total number of milliseconds spent by all writes.

type: long

---

<div class="post-metadata">

**Author:** ![Jesselastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jesselastic/32/140262_2.png) [@Jesselastic](https://discuss.elastic.co/u/Jesselastic)\
**Post date:** [March 23, 2025, 3:59pm UTC](https://discuss.elastic.co/t/disk-io-how-to-visualize-max-disk-throughput/360803/2 "2025-03-23T15:59:59Z")

</div>

I'm surprised this didn't get hit by the 28 days later zombies. I am currently trying to work on this too, but I am thinking the system.diskio.io.time would cover both read and write time, but so far not getting good results.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [March 23, 2025, 6:52pm UTC](https://discuss.elastic.co/t/disk-io-how-to-visualize-max-disk-throughput/360803/3 "2025-03-23T18:52:34Z")

</div>

Hi @Jesselastic

What version Elasticsearch?  
What / how are you collecting data? elastic Agent Metricbeat etc?  
Which exact fields?

and

What exactly are you trying to calculate?

Example with Elastic Agent

Quick Query Bar Filter

`data_stream.dataset : "system.diskio" and agent.name : "stephenb-metrics-test-es1" and metricset.name : "diskio"`

X - Axis Date Histogram

Y-Axis : `counter_rate(max(system.diskio.io.time))`

**IMPORTANT** : Breakdown by `system.diskio.io.name` to 20 or so because there is more than 1 disk name... if you do not do this your results will .... not... work....

 ![Screenshot 2025-03-23 at 11.47.46 AM](https://us1.discourse-cdn.com/elastic/original/3X/a/3/a3cf2cb53b660616ce29aedf5497c92400a8345f.jpeg)  
 ![Screenshot 2025-03-23 at 11.47.33 AM](https://us1.discourse-cdn.com/elastic/original/3X/2/e/2ee539aab89c13112f83e8209eefdfe946f40878.png)  
 ![Screenshot 2025-03-23 at 11.45.06 AM](https://us1.discourse-cdn.com/elastic/original/3X/2/d/2d715701895e1482284adddb817c477611e94d87.png)

You can collapse by `SUM` if you want the total or `none` if you want to see each disk... ... This is know as a series aggregation ... This is in the breakdown ... now this will sum up all the individual counter rates by `system.diskio.name` the different for the total sum.

 ![Screenshot 2025-03-23 at 11.49.49 AM](https://us1.discourse-cdn.com/elastic/original/3X/2/b/2b000cb607d3c876520c2dc01de05a8304ceb180.png)

Now you get a single like that is the SUM of all the indvidual disk ios

 ![Screenshot 2025-03-23 at 11.52.01 AM](https://us1.discourse-cdn.com/elastic/original/3X/e/2/e266504fbd6fdff132260f09cc92ca4b8258bd91.png)

Here is the Mappings for Elastic Agent ...

So what exactly do you want?

```auto
       "system": {
          "properties": {
            "diskio": {
              "properties": {
                "io": {
                  "properties": {
                    "ops": {
                      "type": "long"
                    },
                    "time": {
                      "type": "long",
                      "time_series_metric": "counter"
                    }
                  }
                },
                "name": {
                  "type": "keyword",
                  "time_series_dimension": true
                },
                "read": {
                  "properties": {
                    "bytes": {
                      "type": "long",
                      "meta": {
                        "unit": "byte"
                      },
                      "time_series_metric": "counter"
                    },
                    "count": {
                      "type": "long",
                      "time_series_metric": "counter"
                    },
                    "time": {
                      "type": "long",
                      "time_series_metric": "counter"
                    }
                  }
                },
                "serial_number": {
                  "type": "keyword",
                  "ignore_above": 1024
                },
                "write": {
                  "properties": {
                    "bytes": {
                      "type": "long",
                      "meta": {
                        "unit": "byte"
                      },
                      "time_series_metric": "counter"
                    },
                    "count": {
                      "type": "long",
                      "time_series_metric": "counter"
                    },
                    "time": {
                      "type": "long",
                      "time_series_metric": "counter"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }

```

Here is is a Lens

X Axis :
