Phoenix app deployed on Fly.io, count number of visits

Hi,
I’ve deployed a very simple Phoenix application on Fly.io, it can currently handle to API endpoints, a GET and a POST.

I would like to keep track of the number of daily calls made on it. What’s the best way to achieve this?

Do I need to logs the calls in the DB by myself?
Is there any tool out there that can handle this task for me?

I’ve seen phoenix_analytics mentioned recently. Haven’t used that myself, but if you really don’t want to roll your own solution, I think it can fit your needs.

I’m personally a fan of https://www.goatcounter.com/, great privacy focused analytics.

However if you were to do this without introducing a third party service then yes you’d need to store this in Postgres, which should be available if you followed the Fly tutorial.