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

Restart count? #104

Open
hgezim opened this issue Apr 27, 2023 · 8 comments
Open

Restart count? #104

hgezim opened this issue Apr 27, 2023 · 8 comments

Comments

@hgezim
Copy link

hgezim commented Apr 27, 2023

Is there a way I can see the number of restarts that have happened?

@hasnat
Copy link
Contributor

hasnat commented Apr 27, 2023

Think it's time to think about metrics of health check events. Possibly something like a Prometheus endpoint?

@hasnat
Copy link
Contributor

hasnat commented Apr 27, 2023

Is there a way I can see the number of restarts that have happened?

Healthchecks itself, no. Basis possibly was Health check was lean enough to do only instructed restarts and no more.

One can track events themselves by 3rd party.

@RXWatcher
Copy link

RXWatcher commented Apr 27, 2023 via email

@hgezim
Copy link
Author

hgezim commented Apr 27, 2023

I used the PR to run a script to track and take action.

What do you mean by PR?

@hgezim
Copy link
Author

hgezim commented Apr 27, 2023

It's kind of silly but I didn't realize there's two kinds of restarts: one managed by docker and handled by restart policy and one handled by autoheal and health check. Ideally, I'd like to keep track of both kinds.

@RXWatcher
Copy link

RXWatcher commented Apr 27, 2023 via email

@hasnat
Copy link
Contributor

hasnat commented Apr 27, 2023

It's kind of silly but I didn't realize there's two kinds of restarts: one managed by docker and handled by restart policy and one handled by autoheal and health check. Ideally, I'd like to keep track of both kinds.

likely you'd be interested in more events too like stop/destroy/create.
You can somewhat manage then externally e.g. https://github.com/hasnat/docker-events-notifier

You main questions stays valid if autoheal should report/track its own actions?

@tiomny
Copy link

tiomny commented Sep 15, 2023

#102

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

No branches or pull requests

4 participants