Skip to content

Commit

Permalink
import Kibana script work from anywhere, fix #1136
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Nioche <[email protected]>
  • Loading branch information
jnioche committed Dec 12, 2023
1 parent 31a4b2a commit d67ba6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/bin/sh

BIN=$(dirname $0)

echo "Importing status dashboard into Kibana"
curl -X POST "localhost:5601/api/saved_objects/_import" -H "kbn-xsrf: true" --form [email protected]
curl -X POST "localhost:5601/api/saved_objects/_import" -H "kbn-xsrf: true" --form file=@$BIN/status.ndjson
echo ""

echo "Importing metrics dashboard into Kibana"
curl -X POST "localhost:5601/api/saved_objects/_import" -H "kbn-xsrf: true" --form [email protected]
curl -X POST "localhost:5601/api/saved_objects/_import" -H "kbn-xsrf: true" --form file=@$BIN/metrics.ndjson
echo ""

# Storm internal metrics
# curl -X POST "localhost:5601/api/saved_objects/_import" -H "kbn-xsrf: true" --form [email protected]
# curl -X POST "localhost:5601/api/saved_objects/_import" -H "kbn-xsrf: true" --form file=@$BIN/storm.ndjson
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public static RestHighLevelClient getClient(Map<String, Object> stormConf, Strin
nodes -> {
for (Node node : nodes) {
LOG.debug(
"Connected to ES node {} [{}] for {}",
"Connected to OpenSearch node {} [{}] for {}",
node.getName(),
node.getHost(),
boltType);
Expand Down

0 comments on commit d67ba6b

Please sign in to comment.