Velotio - HashiCorp Consul Part 1 - Consul HTTP Service Catalog with Health Check Filter
$ curl http://localhost:8500/v1/catalog/service/web?passing | |
[ | |
{ | |
"ID": "810f4804-dbce-03b1-056a-a81269ca90c1", | |
"Node": "devcube", | |
"Address": "127.0.0.1", | |
"Datacenter": "dc1", | |
"TaggedAddresses": { | |
"lan": "127.0.0.1", | |
"wan": "127.0.0.1" | |
}, | |
"NodeMeta": { | |
"consul-network-segment": "" | |
}, | |
"ServiceKind": "", | |
"ServiceID": "web", | |
"ServiceName": "web", | |
"ServiceTags": [ | |
"django" | |
], | |
"ServiceAddress": "", | |
"ServiceWeights": { | |
"Passing": 1, | |
"Warning": 1 | |
}, | |
"ServiceMeta": {}, | |
"ServicePort": 80, | |
"ServiceEnableTagOverride": false, | |
"ServiceProxyDestination": "", | |
"ServiceProxy": {}, | |
"ServiceConnect": {}, | |
"CreateIndex": 10, | |
"ModifyIndex": 10 | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment