Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Coordinate

Chris Aubuchon edited this page Feb 5, 2016 · 2 revisions

Consul /coordinate endpoint

Subcommand Synopsis
datacenters Queries for WAN coordinates of Consul servers
nodes Queries for LAN coordinates of Consul servers

coordinate

API Reference

Queries for WAN coordinates of Consul servers

Basic Usage

Usage: consul-cli coordinate datacenters [options] 

Examples

$ consul-cli coordinate datacenters
[
  {
    "Datacenter": "mi",
    "Coordinates": [
      {
        "Node": "chris-control-01",
        "Coord": {
          "Vec": [
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
          ],
          "Error": 1.5,
          "Adjustment": 0,
          "Height": 1e-05
        }
      }
    ]
  }
]

nodes

API Reference

Queries for LAN coordinates of Consul servers

Basic Usage

Usage: consul-cli coordinate [options] nodes

Examples

$ consul-cli coordinate nodes
[
  {
    "Node": "chris-control-01",
    "Coord": {
      "Vec": [
        -0.0003549886539566775,
        -0.00042239351073984567,
        0.00010262360136981942,
        -0.0007240747254471578,
        0.00046913347851390395,
        -0.00018551274174647482,
        -0.0013684162143394012,
        0.004328730267756389
      ],
      "Error": 0.34830905212026386,
      "Adjustment": -0.0009088180299761647,
      "Height": 0.0007229180326183593
    }
  },
...
]
Clone this wiki locally