services.prometheus.exporters.script.settings

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 value
Default
{ }
Example
{
  scripts = [
    { name = "sleep"; command = [ "sleep" ]; args = [ "5" ]; }
  ];
}
Declared
<nixpkgs/nixos/modules/services/monitoring/prometheus/exporters.nix>