https://github.com/kylemclaren/elasticsearch-ruby-connection-test
Minimal, dockerized Ruby application for testing connectivity/credentials to Elastic Cloud
https://github.com/kylemclaren/elasticsearch-ruby-connection-test
elastic elasticsearch ruby
Last synced: about 2 months ago
JSON representation
Minimal, dockerized Ruby application for testing connectivity/credentials to Elastic Cloud
- Host: GitHub
- URL: https://github.com/kylemclaren/elasticsearch-ruby-connection-test
- Owner: kylemclaren
- License: mit
- Created: 2022-11-01T18:18:10.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-02T15:42:28.000Z (over 3 years ago)
- Last Synced: 2025-02-25T19:46:59.384Z (over 1 year ago)
- Topics: elastic, elasticsearch, ruby
- Language: Ruby
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/connecting.html#auth-ec)
### Building
To build the image run the following:
```
docker build -t //tags .
```
### Running
To run the program and test your connection, run:
```
docker run --rm //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}
```