Skip to content

Commit

Permalink
feat(monitoring): add grafana kuma plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Simone Bruzzese committed Apr 19, 2024
1 parent 90a6a92 commit 320fd4a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
10 changes: 7 additions & 3 deletions modules/monitoring/custom/grafana/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ USER grafana
ENV GF_PLUGIN_RENDERING_CHROME_BIN="/usr/bin/chromium-browser"

RUN if [ $GF_INSTALL_IMAGE_RENDERER_PLUGIN = "true" ]; then \
grafana-cli \
grafana cli \
--pluginsDir "$GF_PATHS_PLUGINS" \
--pluginUrl https://github.com/grafana/grafana-image-renderer/releases/latest/download/plugin-linux-x64-glibc-no-chromium.zip \
plugins install grafana-image-renderer; \
Expand All @@ -45,9 +45,13 @@ RUN if [ ! -z "${GF_INSTALL_PLUGINS}" ]; then \
if expr match "$plugin" '.*\;.*'; then \
pluginUrl=$(echo "$plugin" | cut -d';' -f 1); \
pluginInstallFolder=$(echo "$plugin" | cut -d';' -f 2); \
grafana-cli --pluginUrl ${pluginUrl} --pluginsDir "${GF_PATHS_PLUGINS}" plugins install "${pluginInstallFolder}"; \
grafana cli --pluginUrl ${pluginUrl} --pluginsDir "${GF_PATHS_PLUGINS}" plugins install "${pluginInstallFolder}"; \
else \
grafana-cli --pluginsDir "${GF_PATHS_PLUGINS}" plugins install ${plugin}; \
grafana cli --pluginsDir "${GF_PATHS_PLUGINS}" plugins install ${plugin}; \
fi \
done \
fi

ARG GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS

ENV GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=$GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS
18 changes: 18 additions & 0 deletions modules/monitoring/images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,24 @@ images:
destinations:
- registry.sighup.io/fury/grafana/grafana

- name: Grafana + Kuma Plugin [Fury Monitoring Module]
source: grafana
build:
context: custom/grafana
args:
- name: GF_INSTALL_PLUGINS
value: grafana-piechart-panel,https://github.com/kumahq/kuma-grafana-datasource/releases/download/v0.1.1/kumahq-kuma-datasource-0.1.1.zip;kumahq-kuma-datasource
# The plugin is not signed: see https://github.com/kumahq/kuma-grafana-datasource
- name: GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS
value: kumahq-kuma-datasource
tag:
- "8.5.5"
- "9.3.2"
- "9.3.6"
- "9.5.5"
destinations:
- registry.sighup.io/fury/grafana/grafana-kuma

- name: kube-state-metrics [Fury Monitoring Module]
source: quay.io/coreos/kube-state-metrics
tag:
Expand Down

0 comments on commit 320fd4a

Please sign in to comment.