Skip to content

Add current time metric and update mechanism #264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2025
Merged

Conversation

dviejokfs
Copy link
Contributor

  • Introduced a new Prometheus gauge metric CurrentTimeSeconds to track the current time in Unix Epoch format.
  • Implemented a goroutine that updates the CurrentTimeSeconds metric every second, ensuring real-time monitoring of the current time.

These changes enhance the observability of the system by providing a metric for the current time, which can be useful for various monitoring and alerting purposes.

- Introduced a new Prometheus gauge metric `CurrentTimeSeconds` to track the current time in Unix Epoch format.
- Implemented a goroutine that updates the `CurrentTimeSeconds` metric every second, ensuring real-time monitoring of the current time.

These changes enhance the observability of the system by providing a metric for the current time, which can be useful for various monitoring and alerting purposes.

Signed-off-by: dviejokfs <[email protected]>
@dviejokfs dviejokfs merged commit a90370c into main May 29, 2025
5 checks passed
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.

1 participant