-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Add custom grafana build image with plugins installed
Updating the prometheus-operator charts to 8.1.2 results in dashboards with no stats mainly because of missing plugins(grafana-piechart-panel). In order to have all dashboards with stats, we build our custom grafana image with the missing plugin installed. This PR, will be reverted once a new version of the chart is released since the fix will be included. Fixes: #2175
- Loading branch information
Showing
4 changed files
with
47 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
ARG GRAFANA_IMAGE_VERSION=6.4.2 | ||
|
||
FROM grafana/grafana:${GRAFANA_IMAGE_VERSION} | ||
|
||
# cannot install plugin to /var/lib/grafana since it will be overwritten | ||
# For more about this see https://community.grafana.com/t/install-plugin-from-dockerfile/2603/5 | ||
RUN mkdir -p /home/grafana/plugin && chown -R grafana:grafana /home/grafana/plugin | ||
|
||
# set new plugin path | ||
ENV GF_PATHS_PLUGINS=/home/grafana/plugin | ||
|
||
RUN grafana-cli --pluginsDir /home/grafana/plugin plugins install grafana-piechart-panel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Build grafana image | ||
=================== | ||
|
||
WHY? | ||
==== | ||
|
||
After updating prometheus-operator charts to version 8.1.2, the | ||
grafana-piechart-panel is not packaged with the upstream Grafana image and | ||
hence Kubernetes Networking dashboards cannot display stats. | ||
|
||
The best alternative was to contribute upstream, but it seems future releases | ||
of the charts will come with Grafana 6.5.0 with the plugin issue already | ||
solved. | ||
|
||
In our best interest to release Metalk8s-2.4.2 with working dashboards, | ||
we resolve to building our own custom Grafana 6.4.2 with the plugin already | ||
installed. | ||
|
||
Note: | ||
===== | ||
|
||
This custom build will be reverted once the Prometheus-operator charts is | ||
updated some time in future. |