Skip to content
Snippets Groups Projects
Commit 642df8ac authored by Frederic Branczyk's avatar Frederic Branczyk
Browse files

kube-prometheus: Fix generate scripts

parent 546a2e6a
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ for f in assets/grafana/generated/*-dashboard.json
do
basefilename=$(basename $f)
echo " $basefilename: |+"
if [ "$basefilename" -eq "etcd-dashboard.json" ]; then
if [ "$basefilename" = "etcd-dashboard.json" ]; then
hack/scripts/wrap-dashboard.sh $f prometheus-etcd | sed "s/^/ /g"
else
hack/scripts/wrap-dashboard.sh $f prometheus-k8s | sed "s/^/ /g"
......
......@@ -24,7 +24,7 @@ dashboardjson=$1
datasource_name=$2
inputname="DS_PROMETHEUS"
if [ "$datasource_name" -eq "prometheus-etcd" ]; then
if [ "$datasource_name" = "prometheus-etcd" ]; then
$inputname="DS_PROMETHEUS-ETCD"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment