Skip to content

Better check & document required permissions #166

Open
@ghost

Description

Hi,

We tried the check_postgres for example for checking long running queries (--action query_time). However when we didn't have enough permissions it just outputted:

POSTGRES_QUERY_TIME OK: DB "postgres" (host:127.0.0.1) longest query: 0s

Now with sufficient permissions it outputs:

POSTGRES_QUERY_TIME WARNING: DB "postgres" (host:127.0.0.1) longest query: 16s

I would expect the first one to simply output UNKNOWN because of lacking permissions :)

Atm we grant:

grant pg_read_all_settings, pg_read_all_stats, pg_stat_scan_tables to xxx;

I suppose this should be a bit better documented and for sure output error if it lacks permissions for certain actions.

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