Skip to content

pg_stat_database_active_time missing #956

Closed
@marekaf

Description

@marekaf

Hi!

I have the stat_database collector enabled (by default) but I don't see pg_stat_database_active_time. According to

// You may obtain a copy of the License at
it seems like active_time is not exposed.

What would be the best option for me to add it?

  • Adding it via a custom query is deprecated and queries.yaml example is empty (queries.yaml is empty #955).
  • Submit a PR to expose this metric? I'm happy to do it, I hope it will be useful for more ppl.
    Thanks!

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