Skip to content

BrandwatchLtd/elasticsearch-consul-discovery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Consul Based Discovery Plugin for Elasticsearch

Uses Consul API for Elasticsearch discovery

Configuration

discovery:
  type: consul
  consul:
    service-names: ["CONSUL_SERVICE_NAME1", "CONSUL_SERVICE_NAME2"]
    tag:  OPTIONAL_TAG_TO_FILTER_NODES
    api-host: OPTIONAL_CONSUL_HTTP_API_HOSTNAME_DEFAULT_IS_LOCALHOST
    api-port:  OPTIONAL_CONSUL_HTTP_API_PORT_FOR_CONSUL_DEFAULT_IS_8500

Key Example Description
discovery.consul.service-names es-dc01-teamA-cluster01-data-nodes an array of service names those are registered in consul
discovery.consul.tag searcher Optional parameter tag to filter nodes registered for given service names, read more..
discovery.consul.local-ws-port 8500 Optional parameter to specify the rest web end point's port on localhost for consul. default value is 8500 [read more...] (https://www.consul.io/docs/agent/options.html#http_port)

This plugin is based on https://github.com/grantr/elasticsearch-srv-discovery and modified to be based on consul API calls instead of DNS records.

About

Consul based node discovery plugin for elasticsearch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%