feat: add node_exporter role and integrate into site playbook
OpenVPN Ansible / Ansible Lint (push) Failing after 14s
OpenVPN Ansible / Ansible Syntax Check (push) Failing after 14s
OpenVPN Ansible / Deploy VPN Networking and OpenVPN (push) Skipped
OpenVPN Ansible / Generate SBOM (push) Skipped
OpenVPN Ansible / Scan SBOM with Trivy (push) Skipped
OpenVPN Ansible / Ansible Lint (push) Failing after 14s
OpenVPN Ansible / Ansible Syntax Check (push) Failing after 14s
OpenVPN Ansible / Deploy VPN Networking and OpenVPN (push) Skipped
OpenVPN Ansible / Generate SBOM (push) Skipped
OpenVPN Ansible / Scan SBOM with Trivy (push) Skipped
This commit is contained in:
@@ -89,3 +89,21 @@ Also connect to the existing FreeRADIUS NodePort endpoint using its configured
|
||||
address and port. DNS and NodePort checks require live network access. The
|
||||
inventory gateway IP/interface values are taken from the supplied task; verify
|
||||
them against the live Hetzner VM before applying.
|
||||
|
||||
## Monitoring exporter
|
||||
|
||||
Run `playbooks/monitoring-exporter.yml` for the VPN nodes and NAT gateway.
|
||||
Set `monitoring_vm_ip` in `inventories/prod/group_vars/all.yml` to the monitoring
|
||||
VM's address on the `10.100.0.x` private network. It is the only allowed source
|
||||
to TCP port 9100. The identical `node_exporter` role defaults to port 9100,
|
||||
binds to `private_ip` then `keepalived_src_ip` then `ansible_host`, and uses
|
||||
`monitoring_vm_ip` as its firewall source. It creates the root-owned,
|
||||
world-readable `/var/lib/node_exporter/textfile` directory and enables
|
||||
systemd, conntrack, filesystem, netdev, textfile, time, and timex collectors;
|
||||
`node_exporter_systemd_unit_filter` restricts unit metrics.
|
||||
|
||||
On the NAT gateway, `node_exporter_port` defaults to 9100 and
|
||||
`node_exporter_allowed_source` uses `monitoring_vm_ip`. Both the
|
||||
ACCEPT for that source and DROP for all other sources on the port are written
|
||||
into `ensure-nat-gateway-firewall.j2`, so the gateway firewall persistence
|
||||
service owns them.
|
||||
|
||||
Reference in New Issue
Block a user