|
2 | 2 |
|
3 | 3 | A Grafana Backend Plugin that handles rendering panels & dashboards to PNGs using headless chrome. |
4 | 4 |
|
5 | | -# Dependencies |
| 5 | +## Requirements |
6 | 6 |
|
7 | | -Nodejs v8+ installed. |
| 7 | +### Supported operating systems |
8 | 8 |
|
9 | | -# Installation |
| 9 | +- Linux (x64) |
| 10 | +- Windows (x64) |
| 11 | +- Mac OS X (x64) |
10 | 12 |
|
11 | | -- git clone into Grafana external plugins folder. |
12 | | -- yarn install --pure-lockfile |
13 | | -- yarn run build |
14 | | -- restart grafana-server , it should log output that the renderer plugin was found and started. |
15 | | -- To get more logging info update grafana.ini section [log] , key filters = rendering:debug |
| 13 | +### No dependencies |
16 | 14 |
|
| 15 | +This plugin have been packaged into a single executable together with [Node.js](https://nodejs.org/) runtime and [Chromium](https://www.chromium.org/Home) so it doesn't require any additional dependencies to be installed on the Grafana server. |
17 | 16 |
|
18 | | -# Remote Rendering Docker image |
| 17 | +## Installation |
19 | 18 |
|
20 | | -A dockerfile is provided for deploying the remote-image-renderer in a container. |
21 | | -You can then configure your Grafana server to use the container via the |
22 | | -``` |
23 | | -[rendering] |
24 | | -server_url=http://renderer:8081/render |
25 | | -``` |
26 | | -config setting in grafana.ini |
| 19 | +### Using grafana-cli |
27 | 20 |
|
28 | | -A docker-compose example is provided in docker/ |
29 | | -to launch |
| 21 | +NOTE: Installing this plugin using grafana-cli is supported from Grafana v6.4. |
30 | 22 |
|
31 | 23 | ``` |
32 | | -cd docker |
33 | | -docker-compose up |
| 24 | +grafana-cli plugins install grafana-image-renderer |
34 | 25 | ``` |
35 | 26 |
|
36 | | -# Packaging |
37 | | -This plugin can be packaged into single archive without dependencies. |
38 | | -```bash |
39 | | -make build_package ARCH=<arch_string> |
40 | | -``` |
| 27 | +### Clone into plugins folder |
| 28 | + |
| 29 | +1. git clone into Grafana external plugins folder. |
| 30 | +2. Install dependencies and build |
| 31 | + |
| 32 | + ``` |
| 33 | + yarn install --pure-lockfile |
| 34 | + yarn run build |
| 35 | + ``` |
| 36 | +
|
| 37 | +3. Restart Grafana |
41 | 38 |
|
42 | | -Where <arch_string> is a combination of |
43 | | -- linux, darwin, win32 |
44 | | -- ia32, x64, arm, arm64 |
45 | | -- unknown, glibc, musl |
| 39 | +## Remote Rendering Using Docker |
46 | 40 |
|
47 | | -This follows combinations allowed for grpc plugin and you can see options [here](https://console.cloud.google.com/storage/browser/node-precompiled-binaries.grpc.io/grpc/?project=grpc-testing) |
48 | | -So far these builds were tested from Mac: |
49 | | -- darwin-x64-unknown |
50 | | -- linux-x64-glibc |
51 | | -- win32-x64-unknown |
| 41 | +As an alternative to installing and running the image renderer as a plugin you can run it as a remote image rendering service using Docker. Read more [here](https://github.com/grafana/grafana-image-renderer/blob/master/docs/remote_rendering.md). |
| 42 | +
|
| 43 | +## Troubleshooting |
| 44 | +
|
| 45 | +To get more logging information, update Grafana configuration: |
| 46 | +
|
| 47 | +``` |
| 48 | +[log] |
| 49 | +filters = rendering:debug |
| 50 | +``` |
52 | 51 |
|
| 52 | +## Additional information |
53 | 53 |
|
| 54 | +See [docs](https://github.com/grafana/grafana-image-renderer/blob/master/docs/index.md). |
0 commit comments