Due to the lack of activity from owners of sensu-plugins-elasticsearch I have created this fork. It is automatically tested, built and published to RubyGems and Bonsai. It includes some improvements. Please check the changelog at the GitHub Releases page.
The Sensu assets packaged from this repository are built against the Sensu ruby runtime environment. When using these assets as part of a Sensu Go resource (check, mutator or handler), make sure you include the corresponding Sensu ruby runtime asset in the list of assets needed by the resource. The current ruby-runtime assets can be found here in the Bonsai Asset Index.
handler-es-delete-indices.rb with Sensu Go, you will need to use the event mapping commandline option, see
handler-es-delete-indices.rb --help for details. And please read the sensu-plugin README for more information on the event mapping functionality.
This repository uses the Kitchen suite for it's tests.
Note: The test suite uses an elasticsearch instance in order to have passing tests. Execute the following command to create a mock elasticsearch 7 instance:
docker run -d --name sensu-elasticsearch-7 docker.elastic.co/elasticsearch/elasticsearch:7.1.1
Running the tests:
bundle install --path vendor/bundle bundle exec kitchen test
You can find sample output for all tests running successfully in this gist.
Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.×