Prometheus export data to AWS S3 periodically

Is there any way to keep periodic backup of Prometheus Data programmatically ? The requirement is something like following :

Two containers viz C-1 & C-2 are continuously being monitored by our Prometheus Server P-1. This time-series DB needs to be backed-up, say in JSON format, once a day in AWS S3 - every day one new time-stamped JSON file created in AWS S3. Can't use 'Thanos' or other similar components. HTTP End-point to query all required metrics are available.

Any suggestion would be helpful.

Regards.


Backups to S3 can be performed from Prometheus snapshots - see this article. Prometheus doesn't provide a tool for making periodic snapshots and backups, so you need to write it on yourself. Another solution is to use Prometheus-like system, which provides such a tool for backups - see this post.