grafana,graphite,influxdb with docker

时间:2023-03-10 07:29:47
grafana,graphite,influxdb with docker

++++++++++++++++++++++++

sudo docker pull tutum/influxdb

sudo docker run -d -p 8083:8083 -p8086:8086 --expose 8090 --expose
8099 --name influxsrv tutum/influxdb

sudo docker run -d -p 3000:3000 \
-v /opt/dockerRoot/dockerData/grafana:/var/lib/grafana \
-e "GF_SECURITY_ADMIN_PASSWORD=secret" \
grafana/grafana
/opt/dockerRoot/dockerData/graphite
sudo docker run -d \
--name graphite \
-v /tmp/graphite:/var/lib/graphite/storage/whisper \
-p 8880:80 \
-p 2003:2003 \
-p 2004:2004 \
-p 7002:7002 \
steeef/graphite-centos # vi /opt/graphite/webapp/graphite/local_settings.py
#########################
# General Configuration #
#########################
TIME_ZONE = 'UTC'
##########################
 1)修改graphite显示时间:
TIME_ZONE = 'Asia/Shanghai'

  2)修改系统时区

cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

+++++++++++++++++++++++++++++++++

docker run 要加入 --privileged 不然InfluxDB启动时,脚本里面的 ulimit -n 65536 无法执行,导致InfluxDB无法启动~~

curl -X PUT -H "Content-Type: application/json" -d '{
"oldPassword": "admin",
"newPassword": "newpass",
"confirmNew": "newpass"
}' http://admin:admin@localhost:3000/api/user/password

https://zhuanlan.zhihu.com/p/23924022

https://hub.docker.com/r/samuelebistoletti/docker-statsd-influxdb-grafana/

http://docs.grafana.org/installation/docker/

https://github.com/grafana/grafana-docker

http://www.cnblogs.com/hanyifeng/p/6293620.html

---graphite---

http://blog.****.net/crazyhacking/article/details/8363235

http://www.infoq.com/cn/articles/graphite-intro

http://graphite.readthedocs.io/en/latest/feeding-carbon.html

http://blog.****.net/liuxiao723846/article/details/72643103

http://blog.clanzx.net/2013/09/27/ldap-kerberos.html

intergrate with graphite and grafana

https://segmentfault.com/a/1190000000693520