Grafana
安装与删除:
https://grafana.com/docs/grafana/latest/installation/debian/
sudo find / -name grafana -print
find / -type f -name “grafana” -exec rm -i {} \
netstat -lptn
sudo netstat -lp | grep 3000
netstat -apn |grep LISTEN | grep 3000
Run grafana docker image
# create a persistent volume for your data in /var/lib/grafana (database and plugins)
docker volume create grafana-storage
# start grafana
docker run -d -p 3000:3000 --name=grafana -v grafana-storage:/var/lib/grafana grafana/grafana-oss
docker run \
-d \
-p 3000:3000 \
--name grafana \
-e "GF_INSTALL_PLUGINS=grafana-clock-panel, grafana-simple-json-datasource"
-e "GF_SMTP_ENABLED=true" \
-e "GF_SMTP_HOST=smtp.midea.com:465" \
-e "GF_SMTP_USER=xxx" \
-e "GF_SMTP_PASSWORD=xxx" \
-e "GF_SERVER_ROOT_URL=http://0.0.0.0:3000" \
-e "GF_SMTP_SKIP_VERIFY=true" \
-v grafana-storage:/var/lib/grafana \
grafana/grafana-oss
version: "3.8"
services:
grafana:
image: grafana/grafana-enterprise
container_name: grafana
restart: unless-stopped
environment:
- GF_SERVER_ROOT_URL=http://my.grafana.server/
- GF_INSTALL_PLUGINS=grafana-clock-panel
ports:
- '3000:3000'
volumes:
- 'grafana_storage:/var/lib/grafana'
- ./volumes/grafana/config/custom.ini:/etc/grafana/grafana.ini
volumes:
grafana_storage: {}
https://grafana.com/docs/grafana/latest/administration/configuration/
https://grafana.com/docs/grafana/latest/administration/configure-docker/
快捷键:
Set-up-telegraf-influxdb-and-grafana-with-docker-compose
https://sweetcode.io/set-up-telegraf-influxdb-and-grafana-with-docker-compose/