A Reusable NServiceBus CustomCheck to check the availability and connectivity of Elastic Search.
In order to begin using this custom check simply create a child class for each instance you would like to perform a healthcheck on.
namespace Ordering.Endpoint.CustomChecks
{
public class OrderingElasticSearchCustomCheck : ElasticSearchCustomCheck
{
private static TimeSpan repeat = TimeSpan.FromSeconds(5);
private static Uri elasticSearchUri = new Uri("http://localhost:9200");
public OrderingElasticSearchCustomCheck(): base(elasticSearchUri, repeat)
{
}
}
}
- Fork it ( https://github.com/tragiccode/NServiceBus.CustomChecks.ElasticSearch/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request