Skip to content

How can the process of the root user not be matched? #354

@SXISZERO

Description

@SXISZERO

My configuration file is as follows. I don't want to match the process of the root user, but the regular expression of cmdline uses "^(?". ! root).*”
An error will be displayed.

process_names:
  - name: "{{.Username}}:{{.PID}}:{{.ExeBase}}"
    cmdline:
      - '^(?!root).*'

2025/06/25 10:42:01 error reading config file "process-exporter.yml": bad cmdline regex "^(?!root).*": error parsing regexp: invalid or unsupported Perl syntax: (?!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions