Hello @Hinata Katsunori ,
welcome to this moderated Azure community forum.
Is Azure CosmosDB a hard requirement or could any database be used?
If not, check out the tutorial for Azure Data Explorer.
Azure Data Explorer is a database optimized for time-series data; this means time related facts, observation, telemetry.
It's great for querying over large amounts of data within seconds or less. For querying telemetry, it gives a better performance than CosmosDB.
Perhaps the standard prise of a Azure Data Explorer cluster, in that case check out the free tier.
You can make use of the free tier by exporting live data to an Event Hub first.
From there, check out this tutorial about ingesting streaming Event Hub data into the free Azure Data Explorer.
Compare this with CosmosDB and see what is more suitable for your solution.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.