简体   繁体   English

在Docker容器中进行石墨安装-卷查询

[英]Graphite installation in a docker container - volume query

I am installing graphite via a docker container. 我正在通过docker容器安装石墨。 I have seen that whisper files should not be saved in the container. 我已经看到耳语文件不应该保存在容器中。

So I will be using a data volume from docker to save these on the host machine. 因此,我将使用来自docker的数据量将其保存在主机上。

My question is is there anything else I should be saving on the host (I know this is subjective so I guess Im looking for recommendations on whats important)? 我的问题是,我还需要在主机上保存其他任何内容(我知道这是主观的,所以我想我正在寻找关于重要内容的建议)? Don't believe I need configuration eg carbon conf as this will come from my installation 不要相信我需要配置,例如carbon conf,因为这将来自我的安装

So I'm thinking are there any other files from graphite I need (eg log files etc)? 所以我在想是否还有其他我需要的石墨文件(例如日志文件等)?

What is your reason for keeping log files? 您保留日志文件的原因是什么? Though you do need the directory structure in place. 虽然您确实需要目录结构。 Logging defaults to /opt/graphite/storage/logs . 日志默认为/opt/graphite/storage/logs In here you have carbon-cache/ and webapp/ directories. 在这里,您可以找到carbon-cache/webapp/目录。 The log directory for the webapp is set in the config- local_settings.py , whereas carbon uses carbon.conf . webapp的日志目录在local_settings.py设置,而carbon使用carbon.conf The configs are well documented so you can look into them for specific information. 这些配置文件有据可查,因此您可以查看它们以了解特定信息。

Apart from configs that are generated during installation the only other 'file' crucial for the webapp to work is graphite.db in the /opt/graphtie/storage . 除了在安装过程中生成的配置外,其他对/opt/graphtie/storage应用程序至关重要的“文件”是/opt/graphtie/storage中的graphite.db /opt/graphtie/storage It is used internally by the django webapp for housekeeping information such as user-auth etc. It gets generated by python manage.py --syncdb so i believe you can generate it again at the target system. django webapp在内部使用它来处理诸如user-auth等的整理信息。它由python manage.py --syncdb生成,因此我相信您可以在目标系统上再次生成它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM