gpt4 book ai didi

python - python prometheus_client 在哪里存储数据?

转载 作者:太空宇宙 更新时间:2023-11-03 16:26:44 24 4
gpt4 key购买 nike

这里只是一个简单的问题,因为我很懒惰地浏览代码..:) python prometheus_client 在哪里存储它捕获的所有数据?它是否存储在当前线程的内存中?如果不是那么在哪里?

我想在生产中将它与我的 django 项目一起使用,但是我的 django 应用程序是严重的多线程......它将如何一起运行?

我打算使用django-prometheus为此。

最佳答案

所有内容都保存在内存中,并由互斥体保护。对于多线程应用程序来说,一切都可以正常工作。

关于python - python prometheus_client 在哪里存储数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37925279/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com