Skip to content

Minimal, dockerized Ruby application for testing connectivity/credentials to Elastic Cloud

License

Notifications You must be signed in to change notification settings

kylemclaren/elasticsearch-ruby-connection-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elasticsearch Ruby Connection Test

Minimal, dockerized Ruby application for testing connectivity/credentials to Elastic Cloud

Configuration

Add your Cloud ID, API Key ID and API Key to connect.rb.

More info on authentication to Elastic Cloud can be found in the official docs here

Building

To build the image run the following:

docker build -t <username>/<image_name>/tags .

Running

To run the program and test your connection, run:

docker run --rm <username>/<image_name>/tags

The output should look something like this:

{"cluster_name"=>"xyz123",
 "status"=>"green",
 "timed_out"=>false,
 "number_of_nodes"=>1,
 "number_of_data_nodes"=>1,
 "active_primary_shards"=>12,
 "active_shards"=>12,
 "relocating_shards"=>0,
 "initializing_shards"=>0,
 "unassigned_shards"=>0,
 "delayed_unassigned_shards"=>0,
 "number_of_pending_tasks"=>0,
 "number_of_in_flight_fetch"=>0,
 "task_max_waiting_in_queue_millis"=>0,
 "active_shards_percent_as_number"=>100.0}

About

Minimal, dockerized Ruby application for testing connectivity/credentials to Elastic Cloud

Topics

Resources

License

Stars

Watchers

Forks