Git Product home page Git Product logo

Comments (13)

ivantopo avatar ivantopo commented on August 22, 2024

@paul42 you are correct in that.. we merged some upgrades this morning that make the timezone configuration unnecessary, I'll let you known when the updated image hits the registry!

from docker-grafana-graphite.

paul42 avatar paul42 commented on August 22, 2024

thanks! I love the package you guys put together! I still need to find out/research what exactly the /etc/localtime:ro means, I am assuming it's a way to track timezone / time configs? does the :ro flag in docker mean read only?

from docker-grafana-graphite.

ivantopo avatar ivantopo commented on August 22, 2024

mounting /etc/localtime is just about making sure that the docker container has the same timezone that the docker host has, to make sure that everything is displayed in local time on the grafana dashboard.. this is no longer necessary in the latest grafana release (in fact, it wasn't necessary before, we just found it convenient)... and yes, the :ro is part is for making it read-only.

from docker-grafana-graphite.

thebitmonk avatar thebitmonk commented on August 22, 2024

Any updates on this bug ? Unable to run the current codebase on OSX. Keep hitting this error :
Error response from daemon: Cannot start container 2f098ab6512677b1f85779f9836948df37ca34fbc516c7d15025978d9d0c816b: setup mount namespace bind mounts mounting /etc/localtime into /mnt/sda1/var/lib/docker/aufs/mnt/2f098ab6512677b1f85779f9836948df37ca34fbc516c7d15025978d9d0c816b/etc/local

from docker-grafana-graphite.

ivantopo avatar ivantopo commented on August 22, 2024

@thebitmonk please take a look at the start script, we no longer need to mount /etc/localtime, please run your container by using:

docker run -d -p 80:80 -p 8125:8125/udp -p 8126:8126 --name kamon-grafana-dashboard kamon/grafana_graphite

let us know if you have any issues!

from docker-grafana-graphite.

thebitmonk avatar thebitmonk commented on August 22, 2024

@ivantopo Thanks. I was able to get it up and running.

from docker-grafana-graphite.

ivantopo avatar ivantopo commented on August 22, 2024

@thebitmonk I'm glad you got it working, I'll proceed to close this issue.. feel free to ask anything you might need in our mailing list, regards!

from docker-grafana-graphite.

quxiaojing avatar quxiaojing commented on August 22, 2024

@ivantopo if let timezone not set for the container, timestamp in the log file is not easy to read

from docker-grafana-graphite.

ivantopo avatar ivantopo commented on August 22, 2024

hello @quxiaojing, can you please share what exactly do you mean by not easy to read?

from docker-grafana-graphite.

quxiaojing avatar quxiaojing commented on August 22, 2024

@ivantopo for example,my timezone is Asia/Shanghai,then supervisord.log show some line like

2015-03-05 11:47:46,688 INFO supervisord started with pid 1

when my expectation is

2015-03-05 19:47:46,688 INFO supervisord started with pid 1

timestamp in the log file is the UTC time, not my localtime

from docker-grafana-graphite.

ivantopo avatar ivantopo commented on August 22, 2024

Now I see what you mean. As far as I could investigate there is no other "official" way to set the container's timezone other than mounting /etc/localtime but as witnessed here, it doesn't work in all platforms.

Our initial motivation to suggest mounting /etc/localtime was that it wasn't obvious how to configure Graphite/Grafana to properly show the correct times both while displaying relative (last X time) and absolute (from x to y) metric queries. After our initial efforts Grafana got a lot smarter in this matter and now it simply works with Graphite on UTC and Grafana detecting the user's timezone, that's why after the upgrade we didn't recommend mounting /etc/localtime anymore.

Although we wont recommend it anymore, you can still mount /etc/localtime if you want to! Fortunately that's a deployment decision that you can make just by adding one more option in the command line :).

from docker-grafana-graphite.

quxiaojing avatar quxiaojing commented on August 22, 2024

@ivantopo Thanks for reply , I found the reason why we can mount /etc/localtime, it's because the host which run the docker damon don't have the file /etc/localtime, especially on the boot2docker-vm. so i need to customize my boot2docker-vm to resolve this problem.

from docker-grafana-graphite.

ivantopo avatar ivantopo commented on August 22, 2024

@quxiaojing please share if you find any suitable solution.

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.