docker快速部署grafana

  sre


docker run \
-d \
-p 3000:3000 \
--name=grafana \
-v /var/lib/grafana:/var/lib/grafana \
-e "GF_SERVER_ROOT_URL=http://10.0.0.1" \
-e "GF_SECURITY_ADMIN_PASSWORD=123456" \
-e "GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource,raintank-worldping-app" \
grafana/grafana

#sqlite3数据库文件位于 /var/lib/grafana
#配置文件在 /etc/grafana/,也可用GF_PATHS_CONFIG指定自定义grafana.ini
#GF_INSTALL_PLUGINS变量可以指定插件,grafana-cli plugins install ${plugin}获取插件列表
#可以指定版本运行,grafana/grafana:4.5.2 specify right tag, e.g. 4.5.2 - 可用tags参见 Docker Hub
#Configuring AWS Credentials for CloudWatch Support
-e "GF_AWS_PROFILES=default" \
-e "GF_AWS_default_ACCESS_KEY_ID=YOUR_ACCESS_KEY" \ #required
-e "GF_AWS_default_SECRET_ACCESS_KEY=YOUR_SECRET_KEY" \ #required
-e "GF_AWS_default_REGION=us-east-1" \ #optional

One Reply to “docker快速部署grafana”

  • docker run
    -d
    -p 3000:3000
    --name=grafana
    -v /var/lib/grafana:/var/lib/grafana
    -e "GF_SERVER_ROOT_URL=http://10.0.0.1"
    -e "GF_SECURITY_ADMIN_PASSWORD=123456"
    -e "GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource,raintank-worldping-app,alexanderzobnin-zabbix-app"
    grafana/grafana

LEAVE A COMMENT

Captcha Code