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