June 20, 2020

Grafana remote image renderer

Introduction

Since the Grafana Image Renderer plug-in is not supported anymore from Grafana 7.0 some changes are required to switch to the remote image renderer, and run it as a docker container.

This post goes into the details of setting-up a remote image renderer for Kubernetes, on amd64, arm/v7 and arm64.

Multi-arch build

The official git repo only supports linux/amd64 at this moment but there is an issue for arm-support.

I have created a fork of the repo here with the changes required for building for arm/v7 and arm64.

  1. Clone the grafana-image-renderer fork: git clone https://github.com/asksven/grafana-image-renderer
  2. Login to the registry you are going to push to: docker login
  3. Set environment variables: export REPOSITORY=asksven/grafana-image-renderer && export VERSION=1
  4. Start the emulator: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
  5. Build: make docker-buildx

Deploy the image renderer on Kubernetes

Follow the instructions here to deploy the remote image renderer, anc configure Grafana to use it.

Content licensed under CC BY 4.0