Skip to content

[#444] Add restart_time helper and parse authentication_timeout - #682

Open
rohanmishra29 wants to merge 1 commit into
pgexporter:mainfrom
rohanmishra29:fix-444-restart-time
Open

rohanmishra29 wants to merge 1 commit into
pgexporter:mainfrom
rohanmishra29:fix-444-restart-time

Conversation

@rohanmishra29

Copy link
Copy Markdown

Closes #444

  • Added restart_time helper in src/libpgexporter/configuration.c to standardize debug/warn logging when reloading time-based configuration parameters (metrics_cache_max_age, metrics_query_timeout, bridge_cache_max_age, history_interval, blocking_timeout, and authentication_timeout) without falsely triggering restart_required.
  • Added missing INI parsing for authentication_timeout in pgexporter_read_configuration using as_milliseconds with a 5s default (matching pgexporter_init_configuration).
  • Added unit test test_configuration_reload_time_logging in test/testcases/test_configuration.c to verify that reloading time-based parameters updates their values and logs transitions without requiring a restart.

@jesperpedersen

Copy link
Copy Markdown
Contributor

Please, rebase

@rohanmishra29

Copy link
Copy Markdown
Author

Rebased

@jesperpedersen

Copy link
Copy Markdown
Contributor

@rohanmishra29 Please, rebase

@rohanmishra29

Copy link
Copy Markdown
Author

Rebased

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce restart_time() helper to restore reload logging

2 participants