We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c503b15 commit d75777dCopy full SHA for d75777d
import-dashboards.sh
@@ -21,7 +21,7 @@ import_dashboards() {
21
cp dashboards/*.json ./grafana/dashboards/
22
23
# Replace variables in dashboards
24
- for file in grafana/dashboards/*.json; do
+ for file in ./grafana/dashboards/*.json; do
25
# Replace data source objects with just the name of the source
26
perl -0777 -pi -e 's|"datasource":\s*\{[^}]*DS_INFLUXDB[^\n]*\s+\}|"datasource": "InfluxDB (auto provisioned)"|gs' "$file"
27
perl -0777 -pi -e 's|"datasource":\s*\{[^}]*DS_SUN_AND[^\n]*\s+\}|"datasource": "DS_SUN_AND MOON"|gs' "$file"
0 commit comments