Provisions prom.w5isp.com (10.0.15.31) as the home-cluster monitoring host. Prometheus 3.6.0 scrapes the Talos cluster API/nodes/cAdvisor via an external SA token; Grafana ships with the Prometheus datasource pre-provisioned. host_vars opens 9090/9093/9100/3000 to 10.0.0.0/16 plus SSH from the home LAN so the firewall role doesn't lock out admin access.
28 lines
623 B
Django/Jinja
28 lines
623 B
Django/Jinja
[Unit]
|
|
Description=Prometheus node_exporter
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User={{ node_exporter_user }}
|
|
Group={{ node_exporter_group }}
|
|
ExecStart={{ node_exporter_install_dir }}/node_exporter \
|
|
--web.listen-address={{ node_exporter_listen_address }} \
|
|
{% for arg in node_exporter_extra_args %}
|
|
{{ arg }} \
|
|
{% endfor %}
|
|
$NODE_EXPORTER_EXTRA_ARGS
|
|
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
NoNewPrivileges=true
|
|
ProtectHome=true
|
|
ProtectSystem=full
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectControlGroups=true
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|