elijah / chef-prometheus

Chef cookbook for Prometheus. The open source service monitoring system and time-series database.
Apache License 2.0
52 stars 93 forks source link

Create storage.local.path directory explicitly #43

Closed YoSmudge closed 8 years ago

YoSmudge commented 8 years ago

When using a custom storage.local.path, such as /var/lib/prometheus, the service will fail to start as this directory does not exist and can't be created. This directory can and should be explicitly created.

I was also curious why the default storage directory is /tmp/metrics - the tmp directory gets cleared on reboot and under other circumstances so using it for data storage seems like it has the potential to cause confusion and pain.