Categories
Snippets

Ansible inventory file from Consul

Quick self-reminder: curl consul.domain:8500/v1/catalog/nodes | jq ‘.[]|.Address’ | tr -d ‘”‘

Categories
Infrastructure

Host monitoring with Prometheus

How to monitor your host metrics with Prometheus, using consul to automatically pick up freshly spawned hosts.