Inspect size of Postgres database and storage space usage on a DigitalOcean managed database instance

On an instance of a managed Postgres database system on, I have a limit of 10 gigs of storage space.

How can I tell how much space my Postgres instance is using? How can I tell what storage space remains available?