Comments (14)
Oh, and another thing we did locally that we may want to document: If you're using collectd
to report stats, you need to expose -p 2003:2003
for the graphite carbon port. I can open a separate issue for that but since I'm already in the README I'm happy to do it as part of this issue.
from docker-grafana-graphite.
Hello James! The paths look correct so yes, that should be enough to ensure data persistence. If you opt for sending the PR I would suggest you to also put a small note on optionally mounting the logs folder in a volume as well, to simplify troubleshooting. Thanks!
from docker-grafana-graphite.
Sounds good. What log paths would you suggest documenting? I see a few possibilities:
/var/log/elasticsearch
/opt/graphite/storage/log
Also, should users make the volumes they bridge to the container world-writeable? I ended up doing that but I'm not sure if that's strictly required.
from docker-grafana-graphite.
I'm having difficulties with permissions when storing the elasticsearch data outside of the container (whisper data works fine). It only works when I set write permissions to group and other on the mapped volumed data but I don't think it's a correct solution. Any ideas ?
from docker-grafana-graphite.
Yeah I made the directories world-writeable as well. It might work to chown the dir to the UID of elasticsearch. I didn't look at /etc/passwd in the container to see what UID that is though.
I've had similar issues with docker and external volumes.
from docker-grafana-graphite.
+1
Makes a lot of sense to have this configuration in the README
from docker-grafana-graphite.
I think /opt/grafana/data should also be persisted, or you lose your dashboards.
from docker-grafana-graphite.
Yes you need to add this to readme =) Thanks coopernurse
from docker-grafana-graphite.
Created a pull request: #60 which encapsulates the advise from this thread.
from docker-grafana-graphite.
I have a question regarding the persistence of the data. I am trying to use data volume container however it does not seem to work with following commands - can someone tell me what is wrong in that
docker create --name grafanadata \
-v /opt/graphite/storage/whisper \
-v /var/lib/elasticsearch \
-v /opt/grafana/data \
-v /opt/graphite/webapp
-v /opt/graphite/storage/log \
-v /var/log/elasticsearch \
kamon/grafana_graphite /bin/true
docker run \
--detach \
--volume-from grafanadata \
--publish=80:80 \
--publish=81:81 \
--publish=8125:8125/udp \
--publish=8126:8126 \
--name grafana-dashboard \
kamon/grafana_graphite
I get this
flag provided but not defined: --volume-from
from docker-grafana-graphite.
@mohdaliiqbal It should be
--volumes-from
Plural. :)
from docker-grafana-graphite.
FML!
@joshrivers - Thanks dude.
from docker-grafana-graphite.
I think /src/dashboards also needs to be persisted or at least documented better in README as I've lost configured dashboards because of it twice :/ Looking at the Dockerfile and scripts, there is a dashboard-loader tool that runs under supervisor which imports dashboard JSON files from that directory and basically overwrites anything that existed. In my case, I had reconfigured the system metrics dashboard and on container launch all changes get overwritten.
from docker-grafana-graphite.
Lots of done work here - maybe the issue can be closed?
@rholloway 's issue is probably a completely separate one
@coopernurse I'd like to see a simple way to also feed stats to the Docker be explained in the README
. Using collectd
could be exactly this.
from docker-grafana-graphite.
Related Issues (20)
- Unable to run on CentOS 6.8 with docker 1.7.1 HOT 1
- how to use cassandra as backend?
- Cannot add URL (accessible from browser) as direct DataSource
- Grafana 3.0 in latest HOT 1
- Error Building Image from latest HOT 1
- No influxdb admin panel
- Graphite encountered an unexpected error - "OperationalError: no such table: auth_user"
- Is wizzy working? (export-datasources-and-dashboards (exit status 1; not expected)) HOT 5
- The export-datasources-and-dashboards process keeps crashing HOT 3
- nginx 13: Permission denied on AWS ECS HOT 9
- Extremely high disk space usage HOT 1
- Templating init failed
- Unable to create Image from Git project HOT 6
- Metrics stop being recorded after restarting the container
- supervisorD can't access /var/log/supervisor/supervisord.log HOT 4
- Graphite web login and password HOT 3
- Update Dockerfile HOT 1
- Unable to remote login to Grafana
- How to use this image!
- Base Image not alpine!!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-grafana-graphite.