Skip to content

Unknown flag '--collector.stat_statements.include_query' #1184

@OlegKunitsyn

Description

@OlegKunitsyn

What did you do?

Uncomment the last flag in the docker-compose.yml

services:
  postgres-exporter:
    image: prometheuscommunity/postgres-exporter:latest
    ports:
      - "9187:9187"
    environment:
      DATA_SOURCE_USER: user
      DATA_SOURCE_PASS: password
      DATA_SOURCE_URI: "db:5432/postgres?sslmode=disable"
    command:
      - "--collector.long_running_transactions"
      - "--collector.stat_statements"
      - "--collector.statio_user_indexes"
      - "--collector.statio_user_tables"
      - "--collector.stat_user_tables"
      # - "--collector.stat_statements.include_query"

Start the service.

What did you expect to see?
No errors.

What did you see instead? Under which circumstances?
Error log: postgres_exporter: error: unknown long flag '--collector.stat_statements.include_query', try --help

Environment
Docker on Ubuntu 24.04.2 LTS

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