Comments (13)
@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.
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.
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.
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.
@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.
@ivantopo Thanks. I was able to get it up and running.
from docker-grafana-graphite.
@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.
@ivantopo if let timezone not set for the container, timestamp in the log file is not easy to read
from docker-grafana-graphite.
hello @quxiaojing, can you please share what exactly do you mean by not easy to read?
from docker-grafana-graphite.
@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.
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.
@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.
@quxiaojing please share if you find any suitable solution.
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.