Ask Your Question
4

What is the method for adjusting the query timing interval in postgres exporter?

asked 2022-06-24 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-07-22 23:00:00 +0000

lalupa gravatar image

The query timing interval for the postgres exporter can be adjusted by setting the query_duration_seconds configuration option in the exporter's configuration file. The value of query_duration_seconds determines how often the exporter runs queries against the PostgreSQL database to collect metrics. By default, the value is set to 15 seconds, but it can be adjusted to any desired interval (in seconds).

For example, to set the query duration interval to 30 seconds, the following line can be added to the exporter's configuration file:

query_duration_seconds: 30
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-06-24 11:00:00 +0000

Seen: 9 times

Last updated: Jul 22 '21