-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
99 changed files
with
8,123 additions
and
4,428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17079,6 +17079,12 @@ | |
githubId = 1788628; | ||
name = "pandaman"; | ||
}; | ||
pandanz = { | ||
email = "[email protected]"; | ||
github = "pandanz"; | ||
githubId = 32557789; | ||
name = "pandanz"; | ||
}; | ||
pandapip1 = { | ||
email = "[email protected]"; | ||
github = "Pandapip1"; | ||
|
@@ -22414,6 +22420,12 @@ | |
githubId = 3105057; | ||
name = "Jan Beinke"; | ||
}; | ||
thelissimus = { | ||
name = "Kei"; | ||
email = "[email protected]"; | ||
github = "thelissimus"; | ||
githubId = 70096720; | ||
}; | ||
themaxmur = { | ||
name = "Maxim Muravev"; | ||
email = "[email protected]"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,7 @@ let | |
"process" | ||
"pve" | ||
"py-air-control" | ||
"rasdaemon" | ||
"redis" | ||
"restic" | ||
"rspamd" | ||
|
67 changes: 67 additions & 0 deletions
67
nixos/modules/services/monitoring/prometheus/exporters/rasdaemon.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
config, | ||
lib, | ||
pkgs, | ||
utils, | ||
... | ||
}: | ||
|
||
let | ||
inherit (lib) | ||
getExe | ||
mkOption | ||
types | ||
; | ||
|
||
inherit (utils) escapeSystemdExecArgs; | ||
|
||
cfg = config.services.prometheus.exporters.rasdaemon; | ||
in | ||
{ | ||
port = 10029; | ||
extraOpts = with types; { | ||
databasePath = mkOption { | ||
type = path; | ||
default = "/var/lib/rasdaemon/ras-mc_event.db"; | ||
description = '' | ||
Path to the RAS daemon machine check event database. | ||
''; | ||
}; | ||
|
||
enabledCollectors = mkOption { | ||
type = listOf (enum [ | ||
"aer" | ||
"mce" | ||
"mc" | ||
"extlog" | ||
"devlink" | ||
"disk" | ||
]); | ||
default = [ | ||
"aer" | ||
"mce" | ||
"mc" | ||
]; | ||
description = '' | ||
List of error types to collect from the event database. | ||
''; | ||
}; | ||
}; | ||
serviceOpts = { | ||
serviceConfig = { | ||
ExecStart = escapeSystemdExecArgs ( | ||
[ | ||
(getExe pkgs.prometheus-rasdaemon-exporter) | ||
"--address" | ||
cfg.listenAddress | ||
"--port" | ||
(toString cfg.port) | ||
"--db" | ||
cfg.databasePath | ||
] | ||
++ map (collector: "--collector-${collector}") cfg.enabledCollectors | ||
++ cfg.extraFlags | ||
); | ||
}; | ||
}; | ||
} |
Oops, something went wrong.