vmarchaud / consul-topology-visualizer

Visualize latency between your Consul nodes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consul Topology

This tool is made to vizualise latency between consul nodes based on the Coordinate API to compute the data.

Inspiration

Some people might recognize the similarity with Goldpinger which is indeed the tool that i used to kickstart my version, so big thanks you to them for open sourcing this tool in the first place.

The first difference is that i only wanted to vizualise things and didn't want to actually get alerted nor get metrics from this tools. But it's pretty trivial so someone need it, just ask and i might add it.

The second difference is that we don't actually need to deploy anything in your infrastructure since Consul compute pretty much all the data for us.

Configuration

As said earlier, you don't need to deploy anything along side your infrastructure, but there are still some configuration :

  • CONSUL_HTTP_ADDR: The address of the consul endpoint (can be either a master or client)
  • CONSUL_CACERT: The path (on the FS) to the Consul CA cert
  • CONSUL_CLIENT_CERT: The path (on the FS) to the client cert
  • CONSUL_CLIENT_KEY: The path (on the FS) to the client private key

Of course if you can access Consul in HTTP, you don't need to configure the certificate.

Note: It's the same environment variables as the CLI so it avoid you re-configured them on your laptop if you already have the CLI :)

Notes

I hacked this quickly during the holiday so it might not be the state of the art UX or code. Feel free to make a PR to implement the things that you want. I've built an image for deployment it into my production environment so if you want to re-use it: https://cloud.docker.com/repository/docker/vmarchaud/consul-topology

More screenshots

About

Visualize latency between your Consul nodes

License:MIT License


Languages

Language:JavaScript 35.7%Language:TypeScript 32.5%Language:HTML 30.0%Language:Dockerfile 1.8%