Created
June 11, 2020 09:04
-
-
Save velotiotech/1e067d0f47c3a9fb2a8f3ebd089adb7c to your computer and use it in GitHub Desktop.
Velotio - HashiCorp Consul Part 1 - Consul HTTP Service Catalog with Health Check Filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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