services.prometheus.exporters.script.settings
NixOS option
Free-form configuration for script_exporter, expressed as a Nix attrset and rendered to YAML. Migration note: The previous format using script = "sleep 5" is no longer supported. You must use command (list) and args (list), e.g. { command = [ "sleep" ]; args = [ "5" ]; }. See the official documentation for all available options: https://github.com/ricoberger/script_exporter#configuration-file
type: YAML 1.1 valueDefault
{ }Example
declared in: nixos/modules/services/monitoring/prometheus/exporters.nixView source on NixOS/nixpkgs →{
scripts = [
{ name = "sleep"; command = [ "sleep" ]; args = [ "5" ]; }
];
}