mirror of
https://github.com/grafana/grafana.git
synced 2024-11-23 09:26:43 -06:00
871ad73414
grafana-plugin-model is legacy and is replaced by new backend plugins SDK and architecture. Renderer is not part of SDK and we want to keep it that way for now since it's highly unlikely there will be more than one kind of renderer plugin. So this PR adds support for renderer plugin v2. Also adds support sending a Device Scale Factor parameter to the plugin v2 remote rendering service and by that replaces #22474. Adds support sending a Headers parameter to the plugin v2 and remote rendering service which for now only include Accect-Language header (the user locale in browser when using Grafana), ref grafana/grafana-image-renderer#45. Fixes health check json details response. Adds image renderer plugin configuration settings in defaults.ini and sample.ini. Co-Authored-By: Arve Knudsen <arve.knudsen@gmail.com>
25 lines
743 B
Bash
Executable File
25 lines
743 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Check whether protobuf & go plugin are installed
|
|
PROTOC_HELP_URL="http://google.github.io/proto-lens/installing-protoc.html"
|
|
PROTOC_GEN_GO_HELP_URL="https://github.com/golang/protobuf/tree/v1.3.4#installation"
|
|
|
|
EXIT_CODE=0
|
|
|
|
if ! [ -x "$(command -v protoc)" ]; then
|
|
echo "Protocol Buffers not found."
|
|
echo "Please install Protocol Buffers and ensure 'protoc' is available in your PATH."
|
|
echo "See ${PROTOC_HELP_URL} for more."
|
|
echo
|
|
EXIT_CODE=1
|
|
fi
|
|
|
|
if ! [ -x "$(command -v protoc-gen-go)" ]; then
|
|
echo "Protocol Buffers Go plugin not found."
|
|
echo "Please install the plugin and ensure 'protoc-gen-go' is available in your PATH."
|
|
echo "See ${PROTOC_GEN_GO_HELP_URL} for more."
|
|
echo
|
|
EXIT_CODE=1
|
|
fi
|
|
|
|
exit $EXIT_CODE |