Skip to content

Instantly share code, notes, and snippets.

@ewilde
Created February 27, 2017 03:52
Show Gist options
  • Save ewilde/6c0f1d6ed0bbbc27e9ed50b667c38729 to your computer and use it in GitHub Desktop.
Save ewilde/6c0f1d6ed0bbbc27e9ed50b667c38729 to your computer and use it in GitHub Desktop.
Lookup consul using path
# Do service discovery lookups against the Consul service catalog.
namers:
- kind: io.l5d.consul
includeTag: false
useHealthCheck: false
routers:
- protocol: http
label: /http-consul
identifier:
kind: io.l5d.path
segments: 1
consume: true
dtab: |
/svc => /#/io.l5d.consul/dc1;
servers:
- port: 4140
ip: 0.0.0.0
telemetry:
- kind: io.l5d.tracelog
sampleRate: 0.2
level: TRACE
- kind: io.l5d.recentRequests
sampleRate: 1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment