Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upDocker Host Storage for prometheus Data #3370
Comments
This comment has been minimized.
This comment has been minimized.
|
It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided. |
brian-brazil
closed this
Oct 30, 2017
This comment has been minimized.
This comment has been minimized.
|
Thanks |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 23, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
iGlaedr commentedOct 30, 2017
What did you do?
docker pull prom/prometheus
docker run --name prom -d -p 9090:9090 -v /configs/prom/share:/etc/prometheus prom/prometheus -config.file=/etc/prometheus/prometheus.yml -storage.local.memory-chunks=20000 -storage.local.path=/etc/prometheus/data
niflheim:/configs/prom/share$ ls -la
total 2
drwxrwxrwx 3 1037 users 0 Oct 29 22:25 .
drwxrwxrwx 4 1037 users 0 Oct 29 22:55 ..
drwxrwxrwx 3 1037 users 0 Oct 29 22:41 data
-rwxrwxrwx 1 1037 users 1734 Oct 29 22:25 prometheus.yml
What did you expect to see?
A running docker prometheus container which stores his data at /etc/prometheus/data respectively on the host. (Mountet from host /configs/prom/share to Conatainer /etc/prometheus)
What did you see instead? Under which circumstances?
A docker container which does not start.
Environment
niflheim:/configs/prom/share$ cat /etc/alpine-release
3.5.2
niflheim:/configs/prom/share$ docker version
Client:
Version: 17.05.0-ce
API version: 1.29
Go version: go1.8.1
Git commit: v17.05.0-ce
Built: Tue May 16 10:10:04 2017
OS/Arch: linux/amd64
Server:
Version: 17.05.0-ce
API version: 1.29 (minimum version 1.12)
Go version: go1.8.1
Git commit: v17.05.0-ce
Built: Tue May 16 10:10:04 2017
OS/Arch: linux/amd64
Experimental: false
System information:
niflheim:/configs/prom/share$ uname -srm
Linux 4.4.59-0-grsec x86_64
Prometheus version:
Newes pulled form Docker Hub at 30.10.17
Alertmanager version:
Enviroment without Alertmanager
Prometheus configuration file:
When I don't use the option "-storage.local.path=/etc/prometheus/data", the container Starts and works for a few day an stops then scraping data.