I want to monitor a remote Elasticsearch instance. I do not have SSH access to the host Elasticsearch runs on neither do I have access to the /etc/elasticsearch/elasticsearch.yml file. I can however connect to Elasticsearch remotely using the host and port. How do I go about monitoring it?
I ran the command below to install the Elasticsearch agent on another server
curl -Ls https://raw.githubusercontent.com/newrelic/newrelic-cli/master/scripts/install.sh | bash && sudo NEW_RELIC_API_KEY=my_key NEW_RELIC_ACCOUNT_ID=my_id /usr/local/bin/newrelic install -n elasticsearch-open-source-integration
The command asks for the Elasticsearch username/password, Elasticsearch hostname and port. It also asks for Elasticsearch config file. Since I don’t have access to this file, how can I have the agent ignore that? After accepting the default /etc/elasticsearch/elasticsearch.yml, the agent eventually shows this error
❌ Checking for data in New Relic...failed.
==> Installing elasticsearch-open-source-integration…failed.
WARNING encountered an error while validating receipt of data for elasticsearch-open-source-integration: reached max validation attempts
WARNING execution of Elasticsearch Open Source Integration failed, please see the following link for clues on how to resolve the issue: Not seeing data | New Relic Documentation
One or more integrations failed to install. Check the install log for more details: /root/.newrelic/newrelic-cli.log
New Relic installation complete!
Your data is available at https://one.newrelic.com/redirect/entity/redacted
FATAL We encountered an error during the installation: encountered an error while validating receipt of data for elasticsearch-open-source-integration: reached max validation attempts. If this problem persists please visit the documentation and support page for additional help here: https://one.nr/06vjAeZLKjP