Volume metrics

The metrics Metrics on Fly do not appear to be available through Prometheus. I don’t see any other related metrics.

1 Like

Just wanted to check in on this again. There’s very little visibility into volume use.

I can’t see volume metrics either


Broken for me too, fly_volume_used_pct just never finds anything:

$ curl https://api.fly.io/prometheus/$ORG/api/v1/query_range?step=30 -H "Authorization: Bearer $FLY_AUTH_SECRET" --data-urlencode 'query=max (fly_volume_used_pct)'; echo

I can query Fly’s other metrics just fine:

$ FLY_AUTH_SECRET="$(flyctl auth token)"
$ ORG=example_changeme
$ curl https://api.fly.io/prometheus/$ORG/api/v1/query_range?step=30 -H "Authorization: Bearer $FLY_AUTH_SECRET" --data-urlencode 'query=max (pg_stat_activity_count)'; echo

See also Feature preview: Custom metrics - #26 by jerome

1 Like

Hi @Tv1, thanks for your report. Today we tracked down the bug that had caused the two fly_volume_* metrics to stop being published and fixed the issue, so this should be working again. Sorry for the inconvenience!

I still don’t get any results for a Prometheus query for fly_volume_used_pct or fly_volume_size_bytes

  "status": "success",
  "isPartial": false,
  "data": {
    "resultType": "matrix",
    "result": []

The organization is tripoutside.

Sorry about that! The volume metrics stopped a few hours after we deployed the last fix due to a different internal bug we tracked down today. We just deployed another fix that should keep it up and running this time.

Works now, thanks!

It would be great to show fly_volume_used_pct and fly_volume_size_bytes on the dashboard metrics page.

We just launched a set of integrated Grafana dashboards at fly-metrics.net (see Preview: Managed Grafana Dashboards for Fly Apps), including a Volume Usage panel showing the volume metrics for your apps. Hope this is helpful!

1 Like