# Volume disk usage on dashboard

**URL:** <https://community.fly.io/t/volume-disk-usage-on-dashboard/14396>\
**Category:** Fresh Produce\
**Tags:** appsv2, databases, dashboard, login-only\
**Created:** [July 25, 2023, 3:17pm UTC](https://community.fly.io/t/volume-disk-usage-on-dashboard/14396 "2023-07-25T15:17:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![lubien](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/lubien/32/41919_2.png) [@lubien](https://community.fly.io/u/lubien)\
**Post date:** [July 25, 2023, 3:17pm UTC](https://community.fly.io/t/volume-disk-usage-on-dashboard/14396/1 "2023-07-25T15:17:32Z")

</div>

![List of volumes with a new column called "Used" showing on each row usage in MB](https://global.discourse-cdn.com/fly1/original/3X/9/d/9d0c4b6b82e2928357adc164684c7faecc16ab31.jpeg)

Here’s a quick dashboard update: our volumes list page now comes with usage data for your file system. This is just the first of other places that will get this data so I just wanted to share this small update with you all.

Notes:

- If you’re looking for volume usage on databases and compare to the metrics page Database Size this will very likely be different because that metric only shows the database size itself, not the entire volume usage.
- This works much like a `df` command inside a VM, we use the same calculation from [https://fly-metrics.net/](https://fly-metrics.net/) for apps with volumes.
- This updates frequently on running VMs which means if you have volumes not attached to running machines it will show 0. **Don’t worry if you have a stopped machine with a volume showing 0 usage** even though you know there’s data there, we’ll fetch information as soon as the machine is started.

See you next time!

---

<div class="post-metadata">

**Author:** ![smorimoto](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/smorimoto/32/16097_2.png) [@smorimoto](https://community.fly.io/u/smorimoto)\
**Post date:** [July 25, 2023, 4:01pm UTC](https://community.fly.io/t/volume-disk-usage-on-dashboard/14396/2 "2023-07-25T16:01:47Z")

</div>

This is great!

---

<div class="post-metadata">

**Author:** ![danwetherald](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/danwetherald/32/37600_2.png) [@danwetherald](https://community.fly.io/u/danwetherald)\
**Post date:** [July 25, 2023, 4:22pm UTC](https://community.fly.io/t/volume-disk-usage-on-dashboard/14396/3 "2023-07-25T16:22:07Z")

</div>

This is awesome. What is the best suggested way to monitor this and receive alerts when the storage is at 90% usage for example.

Also, a lot of our PG apps are now showing “No volumes” but all 3 machines are running for example.

---

<div class="post-metadata">

**Author:** ![LeoAdamek](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/leoadamek/32/39302_2.png) [@LeoAdamek](https://community.fly.io/u/LeoAdamek)\
**Post date:** [July 25, 2023, 4:36pm UTC](https://community.fly.io/t/volume-disk-usage-on-dashboard/14396/4 "2023-07-25T16:36:04Z")

</div>

The numbers seem off for me, our `pg_data` volumes show 1,378MB of usage in the dashboard – but `df -h` reports only 480MB of usage… are volumes replicated in some way and are the replicas being counted?

---

<div class="post-metadata">

**Author:** ![lubien](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/lubien/32/41919_2.png) [@lubien](https://community.fly.io/u/lubien)\
**Post date:** [July 25, 2023, 5:22pm UTC](https://community.fly.io/t/volume-disk-usage-on-dashboard/14396/5 "2023-07-25T17:22:33Z")

</div>

> [@danwetherald](#):
>
> This is awesome. What is the best suggested way to monitor this and receive alerts when the storage is at 90% usage for example.

We ship file system usage to [our Prometheus](https://fly.io/docs/reference/metrics/) so you could setup something like [self hosted grafana alerting](https://community.fly.io/t/how-to-setup-grafana-alarms-bell-icon-is-not-showing-up/8109/2).

> [@danwetherald](#):
>
> Also, a lot of our PG apps are now showing “No volumes” but all 3 machines are running for example.

Are they on Apps V2? I should have added to the notes that this will work only for apps v2. We are moving towards all apps using machines so our goal is for those databases to be able to benefit from new work like this one. We will be adding a notice there soon.

> [@LeoAdamek](#):
>
> The numbers seem off for me, our `pg_data` volumes show 1,378MB of usage in the dashboard – but `df -h` reports only 480MB of usage… are volumes replicated in some way and are the replicas being counted?

It could be slightly off indeed, even `df` might show off numbers. Here’s an example of that on a machine of mine:

```auto
root@5683d269f3758e:/# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 2.0G 0 2.0G 0% /dev
/dev/vda 7.9G 806M 6.7G 11% /
shm 2.0G 1.1M 2.0G 1% /dev/shm
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/vdb 9.8G 149M 9.2G 2% /data

```

You can see `5683d269f3758e` is one of the attached machines on the screenshot above, it says on the dashboard the usage is 709MB while `df` says `149M` but opon checking the `avail` column on `df` you can spot the weirdness.

---

<div class="post-metadata">

**Author:** ![danwetherald](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/danwetherald/32/37600_2.png) [@danwetherald](https://community.fly.io/u/danwetherald)\
**Post date:** [July 25, 2023, 5:33pm UTC](https://community.fly.io/t/volume-disk-usage-on-dashboard/14396/6 "2023-07-25T17:33:39Z")

</div>

> [@lubien](#):
>
> Are they on Apps V2? I should have added to the notes that this will work only for apps v2. We are moving towards all apps using machines so our goal is for those databases to be able to benefit from new work like this one. We will be adding a notice there soon.

Yes, all the apps are running V2.

---

<div class="post-metadata">

**Author:** ![lubien](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/lubien/32/41919_2.png) [@lubien](https://community.fly.io/u/lubien)\
**Post date:** [July 25, 2023, 5:37pm UTC](https://community.fly.io/t/volume-disk-usage-on-dashboard/14396/7 "2023-07-25T17:37:02Z")

</div>

Can you send it here or DM me your app name so I can take a look?

---

<div class="post-metadata">

**Author:** ![danwetherald](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/danwetherald/32/37600_2.png) [@danwetherald](https://community.fly.io/u/danwetherald)\
**Post date:** [July 25, 2023, 5:58pm UTC](https://community.fly.io/t/volume-disk-usage-on-dashboard/14396/8 "2023-07-25T17:58:41Z")

</div>

Here are a few apps I noticed it on so far.

`bridge-way-fb-capi-db`  
`rotator-api-db`

---

<div class="post-metadata">

**Author:** ![lubien](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/lubien/32/41919_2.png) [@lubien](https://community.fly.io/u/lubien)\
**Post date:** [July 25, 2023, 7:37pm UTC](https://community.fly.io/t/volume-disk-usage-on-dashboard/14396/9 "2023-07-25T19:37:59Z")

</div>

This might be a distributed systems issue 😅 , we are working on improving this. In the meantime we updated the UI to better reflect that it’s loading rather than having no volumes.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/fly1/original/3X/6/e/6e8955d00cb218e186ebbe3a6ab06fefdce15290.svg) [@system](https://community.fly.io/u/system)\
**Post date:** [August 1, 2023, 7:38pm UTC](https://community.fly.io/t/volume-disk-usage-on-dashboard/14396/10 "2023-08-01T19:38:44Z")

</div>

Closed on August 1, 2023, 7:38pm UTC

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