Files
Will Freeman a39f1a6a36 Add OTel (#114)
* init otel

* deflock group

* no internal metrics

* only log errors for now
2026-04-26 13:20:32 -06:00

26 lines
456 B
Desktop File

[Unit]
Description=OpenTelemetry Collector (deflock)
After=network.target
Wants=network.target
[Service]
Type=simple
User=otelcol
Group=deflock
ExecStart=/usr/local/bin/otelcol-contrib --config /etc/otelcol/config.yaml
EnvironmentFile=/home/nullplate/secrets/api/.env
Restart=on-failure
RestartSec=5s
# Harden the service
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/otelcol
[Install]
WantedBy=multi-user.target