grafana 生成报表(备忘)

Grafana Image Renderer

grafana 通过安装插件 Grafana Image Renderer ,来实现抓取需要的报表

安装

脚本类似:

docker run -d --name grafana-image-renderer --restart=unless-stopped \
  -e HTTP_HOST=0.0.0.0 \
  -e ENABLE_METRICS="true" \
  -p 8081:8081 \
  $HOSTS \
  $DOCKER_URL/torchlight/grafana-image-renderer:latest

docker run -d --name grafana --restart=unless-stopped --user root -p 3000:3000 \
  -v $DATA_DIR/grafana:/var/lib/grafana \
  -e GF_RENDERING_SERVER_URL=http://$HOST:8081/render \
  -e GF_RENDERING_CALLBACK_URL=http://$HOST:3000/ \
  -e GF_LOG_FILTERS=rendering:debug \
  $HOSTS \
  $DOCKER_URL/torchlight/grafana:latest


docker run -d --name prometheus --restart=unless-stopped \
  --user root \
  -p 9090:9090 \
  -v $CFG_DIR/prometheus:/etc/prometheus \
  -v $DATA_DIR/prometheus:/prometheus \
  $HOSTS \
  $DOCKER_URL/torchlight/prometheus:latest

官方文档

  • https://grafana.com/grafana/plugins/grafana-image-renderer#remote-rendering-using-docker
  • https://github.com/grafana/grafana-image-renderer/blob/master/docs/remote_rendering_using_docker.md

你可能感兴趣的:(linux,grafana,prometheus,image,renderer,docker,生成报表)