Watch
0
0
Fork
You've already forked hyperhive
0

forgejo, bao: let the go process collector read /proc/stat so the uptime panels have data

This commit is contained in:
atlas 2026-11-07 14:19:52 +01:00 • committed by mara
commit d8ad1e1794
2 changed files with 13 additions and 0 deletions

View file

@ -820,6 +820,13 @@ in
"d /var/lib/forgejo/data/actions_artifacts 0750 forgejo forgejo - -"
];
# The Go process collector derives `process_start_time_seconds` from
# `btime` in /proc/stat and omits the series without a word when the
# file is unreadable. Upstream's unit sets `ProcSubset = "pid"`,
# which hides it, and the Uptime panel reads that series.
# `ProtectProc = "invisible"` stays, so other processes remain hidden.
systemd.services.forgejo.serviceConfig.ProcSubset = lib.mkForce "all";
# Ensure Forgejo has a usable GPG signing key so UI merges / CRUD
# commits are signed instead of erroring "does not have a signing
# key". This service (a) generates a key in forgejo's persistent

View file

@ -4405,6 +4405,12 @@ in
# the 60-144 s raft open; `Restart=on-failure` upstream then
# restarts it cold.
TimeoutStartSec = openbaoStartSec;
# The Go process collector derives `process_start_time_seconds`
# from `btime` in /proc/stat and omits the series without a word
# when the file is unreadable. Upstream's unit sets
# `ProcSubset = "pid"`, which hides it, and the Uptime panel reads
# that series. `ProtectProc = "invisible"` stays.
ProcSubset = lib.mkForce "all";
}
// lib.optionalAttrs haveServerTls {
LoadCredential = [ "${serverKeyCredential}:${serverKeyPath}" ];