saving-es-dashboard-schemas 672 Bytes
Newer Older
1 2 3 4 5 6
#!/bin/bash

git clone git@github.com:cms-sw/cms-bot.git

cd cms-bot/es-kibana-dashboards

7
#declare -a DASH_BOARDS=('RelVals' 'Jenkins' 'IBs' 'JobReports' 'IWYU' 'IB+Unit+Tests' 'CMSREP' 'IBsDataSets' 'Hypernews' 'Main')
8

9 10 11 12 13 14 15
#for dashboard in "${DASH_BOARDS[@]}"
#  do
#    curl "http://<user>:<password>@<es-host>.cern.ch:9200/kibana-int/dashboard/$dashboard?pretty"|sed 's/\\/''/g' >${dashboard}.json
#  done
#get all dashboards in one query

curl 'http::/<user><pass>@<es-host>:9200/kibana-int/_search/?size=100&pretty=true' -d '{ "query" : { "match_all" : {} }}' | sed 's/\\//g'>dashboards-schema.json
16 17 18 19

git commit -a -m "kibana dashbaords upated"

git push origon master