mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
To monitor if reproducible builds are going in the right direction, record the good/bad/unknown metrics from rebuilderd with a Prometheus textcollector for a Grafana dashboard to display a long term trend. A Python script is required to handle data collection as obtaining the status with jq/bash is non trivial and cannot easily dnyamically collect suites and statuses. Closes: #146
39 lines
841 B
Django/Jinja
39 lines
841 B
Django/Jinja
[Unit]
|
|
Description=Prometheus Rebuilderd Exporter
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
User=node_exporter
|
|
ExecStart=/usr/local/bin/rebuilderd-textcollector.sh {{ prometheus_textfile_dir }}
|
|
ExecStart=/usr/local/bin/rebuilderd-status-textcollector.py {{ prometheus_textfile_dir }}
|
|
|
|
NoNewPrivileges=true
|
|
LockPersonality=true
|
|
CapabilityBoundingSet=
|
|
UMask=077
|
|
|
|
PrivateDevices=true
|
|
PrivateTmp=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ReadWritePaths={{ prometheus_textfile_dir }}
|
|
|
|
MemoryDenyWriteExecute=true
|
|
RemoveIPC=true
|
|
RestrictRealtime=true
|
|
RestrictNamespaces=true
|
|
RestrictSUIDSGID=true
|
|
|
|
RestrictAddressFamilies=~AF_NETLINK
|
|
RestrictAddressFamilies=~AF_PACKET
|
|
|
|
ProtectHostname=true
|
|
ProtectControlGroups=true
|
|
ProtectKernelLogs=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectClock=true
|
|
|
|
SystemCallArchitectures=native
|