Git Product home page Git Product logo

Comments (14)

coopernurse avatar coopernurse commented on August 22, 2024 1

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.

ivantopo avatar ivantopo commented on August 22, 2024

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.

coopernurse avatar coopernurse commented on August 22, 2024

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.

JakubKahovec avatar JakubKahovec commented on August 22, 2024

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.

coopernurse avatar coopernurse commented on August 22, 2024

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.

geoand avatar geoand commented on August 22, 2024

+1
Makes a lot of sense to have this configuration in the README

from docker-grafana-graphite.

joshrivers avatar joshrivers commented on August 22, 2024

I think /opt/grafana/data should also be persisted, or you lose your dashboards.

from docker-grafana-graphite.

lahaxearnaud avatar lahaxearnaud commented on August 22, 2024

Yes you need to add this to readme =) Thanks coopernurse

from docker-grafana-graphite.

joshrivers avatar joshrivers commented on August 22, 2024

Created a pull request: #60 which encapsulates the advise from this thread.

from docker-grafana-graphite.

mohdaliiqbal avatar mohdaliiqbal commented on August 22, 2024

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.

joshrivers avatar joshrivers commented on August 22, 2024

@mohdaliiqbal It should be

 --volumes-from

Plural. :)

from docker-grafana-graphite.

mohdaliiqbal avatar mohdaliiqbal commented on August 22, 2024

FML!

@joshrivers - Thanks dude.

from docker-grafana-graphite.

rholloway avatar rholloway commented on August 22, 2024

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.

akauppi avatar akauppi commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.