Grafana

Grafana

安装与删除:

https://grafana.com/docs/grafana/latest/installation/debian/

https://lindevs.com/install-grafana-on-ubuntu/#:~:text=If%20you%20want%20to%20completely%20remove%20Grafana%20and,-y%20grafana%20When%20it%20finished%2C%20remove%20systemd%20service%3A

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/

快捷键:

shortcuts

Set-up-telegraf-influxdb-and-grafana-with-docker-compose

https://sweetcode.io/set-up-telegraf-influxdb-and-grafana-with-docker-compose/

Previous
Next