Skip to content

[REQUEST] Change how often this exporter scrapes the PostgreSQL database #277

@mdenend

Description

@mdenend

I am planning on running this against a production database that I expect to be heavily taxed with other queries, but I am not very familiar with Go at all, so I have a couple of questions:

  1. How often does the query run against the database?
  2. Is there a way to increase the minimum time between queries to the database, preferably without rebuilding the exporter?

If there isn't a way to increase the minimum time between queries without altering the code, may I suggest adding an option to set a minimum query interval to ensure not too many queries are running, which would delay a query from happening again for at least a certain time?

I think a simple option would be something like MINIMUM_QUERY_INTERVAL=1.2345 where 1.2345 is time in seconds.

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