You are troubleshooting why a service registered via HTTP API is not showing up in the catalog. Which tool provides the most immediate insight into the registration status?
Trap 1: consul kv get
KV store is separate from the service catalog.
Trap 2: consul reload
This command triggers a configuration reload.
Trap 3: consul members
This shows cluster membership, not service state.
- A
consul kv get
Why it fails: KV store is separate from the service catalog.
- B
consul catalog services
The consul catalog services command queries the catalog API directly, listing every registered service. If the HTTP API registration failed or was rejected, the service is absent from this output, giving immediate confirmation of registration status.
- C
consul reload
Why it fails: This command triggers a configuration reload.
- D
consul members
Why it fails: This shows cluster membership, not service state.