Skip to content

--no-collector.stat_progress_vacuum not recognized by postgres_exporter #1190

@megative

Description

@megative

What did you do?

  1. Install or upgrade postgres_exporter via the Helm chart 6.10.2.
  2. Add the flag --no-collector.stat_progress_vacuum to the command arguments.
  3. Start the pod.
  4. Observe the exporter crash with an unknown flag error.

What did you expect to see?
postgres_exporter should accept the --no-collector.stat_progress_vacuum flag and disable the related collector without throwing an error.

According to the official documentation, this flag should be supported ([no-]collector.stat_progress_vacuum).
Other flags in the same [no-collector.*] format work correctly, so the issue seems isolated to this specific collector.

https://github.com/prometheus-community/postgres_exporter?tab=readme-ov-file#flags

What did you see instead? Under which circumstances?

When running postgres_exporter, the flag --no-collector.stat_progress_vacuum causes the exporter to fail with the following error:

postgres_exporter: error: unknown long flag '--no-collector.stat_progress_vacuum', try --help

Environment

  • postgres_exporter version:

Helm chart: 6.10.2
App version: 0.17.1
EKS 1.33

  • postgres_exporter flags:
--no-collector.database
--no-collector.process_idle
--no-collector.stat_statements
--no-collector.replication
--no-collector.locks
--no-collector.stat_bgwriter
--no-collector.wal
--no-collector.stat_database

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions