system-config/docker/grafana/update-grafana
Ian Wienand 330e297318 Add a grafana/grafyaml image
This is a docker image based on the latest upstream Grafana with
grafyaml also installed inside.  It includes a small script to run a
refresh of the dashboards.

Change-Id: Iddfafe852166fe95b3e433420e2e2a4a6380fc64
2020-06-24 08:21:26 +10:00

12 lines
319 B
Bash

#!/bin/bash
#
# Refresh grafana dashboards from project-config
#
GF_USER="$(cat /etc/grafana/secrets/admin_user)"
GF_PASSWORD="$(cat /etc/grafana/secrets/admin_password)"
GF_URL="http://${GF_USER}:${GF_PASSWORD}@localhost:3000/"
grafana-dashboard --debug --grafana-url="${GF_URL}" update /opt/project-config/grafana