Skip to content

Commit

Permalink
Use url instead of file reference for Kibana dashboard import
Browse files Browse the repository at this point in the history
See issue #5 for more details on the dashboard import.

Further, improve test-pipeline script to be less verbose and open
Kibana dashboard directly (needs to be imported first).
  • Loading branch information
FlorianNachtigall committed Jul 8, 2020
1 parent 02fdf8c commit 097c067
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pipeline/bin/test-pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ curl -X GET http://localhost:7778/generate-data/start


echo -e "\e[32m\nChecking that data can be consumed...\e[0m"
kubectl exec -c cp-kafka-broker -it dm-pipeline-cp-kafka-0 -- /bin/bash /usr/bin/kafka-console-consumer --bootstrap-server localhost:9092 --topic anon --from-beginning --max-messages 1
kubectl exec -c cp-kafka-broker -it dm-pipeline-cp-kafka-0 -- /bin/bash /usr/bin/kafka-console-consumer --bootstrap-server localhost:9092 --topic anon --from-beginning --max-messages 1 | tail -c 1000


echo -e "\e[32m\nChecking that Elasticsearch connector sink works...\e[0m"
Expand All @@ -31,7 +31,7 @@ curl -s -X GET http://localhost:9200/activities/_search?size=10\&q=*:* | jq .[]
echo -e "\e[32m\nChecking Kibana...\e[0m"
kubectl port-forward deployment/dm-pipeline-kibana 5601 > /dev/null &
sleep 1
open http://localhost:5601
open 'http://localhost:5601/app/kibana#/dashboard/d8a3f7d0-ba3c-11ea-bf74-7faa6b8c47fc?_g=(refreshInterval:(pause:!t,value:0),time:(from:now-90d,mode:quick,to:now))'


echo -e "\e[32m\nStopping kubectl port-forwarding...\e[0m"
Expand Down
2 changes: 1 addition & 1 deletion pipeline/kibana/visualizations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kibana:
xpackauth:
enabled: false
dashboards:
fitnessData: file://pipeline/kibana/config/dashboard.json
fitnessData: https://raw.githubusercontent.com/peng-data-minimization/fitness-data-pipeline/master/pipeline/kibana/config/dashboard.json

0 comments on commit 097c067

Please sign in to comment.