Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
consul watch -type=service -service=vault
[
{
"Node": {
"ID": "9e9fd388-492c-5924-900d-9788ec3d6340",
"Node": "vault-do-sfo1-002",
"Address": "172.28.107.236",
"Datacenter": "vault",
"TaggedAddresses": {
"lan": "172.28.107.236",
"wan": "172.28.107.236"
},
"Meta": {
"consul-network-segment": ""
},
"CreateIndex": 4613299,
"ModifyIndex": 4613300
},
"Service": {
"ID": "vault:172.28.107.236:8200",
"Service": "vault",
"Tags": [
"standby"
],
"Port": 8200,
"Address": "172.28.107.236",
"EnableTagOverride": false,
"CreateIndex": 4613300,
"ModifyIndex": 4613300
},
"Checks": [
{
"Node": "vault-do-sfo1-002",
"CheckID": "serfHealth",
"Name": "Serf Health Status",
"Status": "passing",
"Notes": "",
"Output": "Agent alive and reachable",
"ServiceID": "",
"ServiceName": "",
"ServiceTags": []
},
{
"Node": "vault-do-sfo1-002",
"CheckID": "vault:172.28.107.236:8200:vault-sealed-check",
"Name": "Vault Sealed Status",
"Status": "critical",
"Notes": "Vault service is healthy when Vault is in an unsealed status and can become an active Vault server",
"Output": "TTL expired",
"ServiceID": "vault:172.28.107.236:8200",
"ServiceName": "vault",
"ServiceTags": [
"standby"
]
}
]
},
{
"Node": {
"ID": "9e9fd388-492c-5924-900d-9788ec3d6340",
"Node": "vault-do-sfo1-002",
"Address": "172.28.107.236",
"Datacenter": "vault",
"TaggedAddresses": {
"lan": "172.28.107.236",
"wan": "172.28.107.236"
},
"Meta": {
"consul-network-segment": ""
},
"CreateIndex": 4613299,
"ModifyIndex": 4613300
},
"Service": {
"ID": "vault:vault-d.domain.com:8200",
"Service": "vault",
"Tags": [
"standby"
],
"Port": 8200,
"Address": "vault-d.domain.com",
"EnableTagOverride": false,
"CreateIndex": 4617344,
"ModifyIndex": 4617344
},
"Checks": [
{
"Node": "vault-do-sfo1-002",
"CheckID": "serfHealth",
"Name": "Serf Health Status",
"Status": "passing",
"Notes": "",
"Output": "Agent alive and reachable",
"ServiceID": "",
"ServiceName": "",
"ServiceTags": []
},
{
"Node": "vault-do-sfo1-002",
"CheckID": "vault:vault-d.domain.com:8200:vault-sealed-check",
"Name": "Vault Sealed Status",
"Status": "passing",
"Notes": "Vault service is healthy when Vault is in an unsealed status and can become an active Vault server",
"Output": "Vault Unsealed",
"ServiceID": "vault:vault-d.domain.com:8200",
"ServiceName": "vault",
"ServiceTags": [
"standby"
]
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment