Skip to content
Snippets Groups Projects
Commit 359cc79f authored by root's avatar root
Browse files

import graphs in kibana

parent 83825209
Branches
Tags
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
- include: networkcreate.yml - include: networkcreate.yml
- include: volumecreate.yml - include: volumecreate.yml
- include: keycloak.yml
- include: zookeeper.yml - include: zookeeper.yml
- include: nifi.yml - include: nifi.yml
- include: odfees.yml - include: odfees.yml
......
This diff is collapsed.
{"tenant":"","username":"admin"}
...@@ -101,6 +101,61 @@ ...@@ -101,6 +101,61 @@
tags: tags:
- start - start
- name: kibana health
block:
- name: check kibana health
shell: 'curl -k -b /tmp/cookie.txt -c /tmp/cookie.txt -X "GET" "https://{{dslproxy}}:5601/api/status" \
| egrep status....overall....state...green'
rescue:
- name: wait for kibana to become ready
shell: 'sleep 180'
always:
- name: recheck kibana health
shell: 'curl -k -b /tmp/cookie.txt -c /tmp/cookie.txt -X "GET" "https://{{dslproxy}}:5601/api/status" \
| egrep status....overall....state...green'
tags:
- start
- name: Copy tenant.json to container
remote_user: kibana
copy:
src: "files/tenant.json"
dest: /tmp/tenant.json
tags:
- start
- name: change tenant to global
shell: 'curl -X "POST" "https://{{dslproxy}}:5601/api/v1/multitenancy/tenant" \
-b /tmp/cookie.txt -c /tmp/cookie.txt \
-k --user admin:{{ odfees_adminpass }} \
-H "kbn-xsrf: reporting" -H "Content-Type: application/json" \
-d @/tmp/tenant.json'
tags:
- start
- name: Copy kibana_graphs.ndjson to container
remote_user: kibana
copy:
src: "files/kibana_graphs.ndjson"
dest: /tmp/kibana_graphs.ndjson
tags:
- start
- name: Import graphs to kibana
shell: 'curl -X "POST" "https://{{dslproxy}}:5601/api/saved_objects/_import?overwrite=true" \
-b /tmp/cookie.txt -c /tmp/cookie.txt \
-k --user admin:{{ odfees_adminpass }} \
-H "kbn-xsrf: reporting" -H "Content-Type: multipart/form-data" \
-F "file=@/tmp/kibana_graphs.ndjson"'
tags:
- start
- name: cleanup temporary files for kibana_graph import
shell: '/bin/rm -rf /tmp/cookie.txt /tmp/kibana_graphs.ndjson /tmp/tenant.json'
ignore_errors: true
tags:
- start
#- name: check reachable hosts #- name: check reachable hosts
# gather_facts: no # gather_facts: no
# tasks: # tasks:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment