Simanas
Simanas

Reputation: 2793

Where python prometheus_client stores the data?

Just a quick question here as I am quiet lazy to go through the code.. :) Where does python prometheus_client stores all the data it captures? Is it stored in memory of current thread? If not then where?

I would like to use it with my django project in production, but my django app is seriously multi-threaded... How it will all play together?

I am planing to use django-prometheus for that.

Upvotes: 1

Views: 898

Answers (1)

brian-brazil
brian-brazil

Reputation: 34152

It's all kept in memory, protected by a mutex. For a multi-threaded application it'll all Just Work.

Upvotes: 3

Related Questions