mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-05-06 04:14:43 +00:00
* Add systemd_exporter Ansible role and Prometheus scrape config - Create systemd_exporter role (download binary, create user, deploy service) - Add scrape job for london-b:9558 and copenhagen-a:9558 - Add systemd_exporter_hosts inventory group - Add stage 3b to deploy.yml - Map role to deploy-on-merge scope Closes PESO-120 * Fix line length lint violations in systemd_exporter tasks * Fix var-naming lint: use systemd_exporter_ prefix for role variables
31 lines
641 B
Django/Jinja
31 lines
641 B
Django/Jinja
#
|
|
# Ansible managed
|
|
#
|
|
|
|
[Unit]
|
|
Description=Prometheus SystemD Exporter
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User={{ systemd_exporter_user }}
|
|
Group={{ systemd_exporter_group }}
|
|
ExecStart=/usr/local/bin/systemd_exporter \
|
|
--log.level={{ systemd_exporter_log_level }} \
|
|
--web.listen-address={{ systemd_exporter_listen_address }}:{{ systemd_exporter_listen_port }}
|
|
|
|
SyslogIdentifier=systemd_exporter
|
|
Restart=always
|
|
RestartSec=1
|
|
StartLimitInterval=0
|
|
|
|
ProtectHome=yes
|
|
NoNewPrivileges=yes
|
|
|
|
ProtectSystem=strict
|
|
ProtectControlGroups=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelTunables=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|