330e297318
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
12 lines
319 B
Bash
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
|