Skip to content
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

Alternative to SIGHUP for recurringly updating metrics for basebackups #2

Open
MPV opened this issue Oct 6, 2021 · 0 comments · May be fixed by #3
Open

Alternative to SIGHUP for recurringly updating metrics for basebackups #2

MPV opened this issue Oct 6, 2021 · 0 comments · May be fixed by #3

Comments

@MPV
Copy link

MPV commented Oct 6, 2021

Since Kubernetes doesn't support sending signals (i.e. SIGHUP) to pods/containers, it would be nice being able to trigger/schedule updates of metrics related to basebackups

Related to this in the current implementation:

# Launch exporter
exporter = Exporter()
# listen to SIGHUP signal
signal.signal(signal.SIGHUP, exporter.update_basebackup)

&

def update_basebackup(self, *unused):
"""
When this script receive a SIGHUP signal, it will call backup-list
and update metrics about basebackups
"""

What do you think?

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 a pull request may close this issue.

1 participant