diff options
author | Arne Juul <arnej@yahooinc.com> | 2022-12-22 09:45:48 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2022-12-22 09:47:56 +0000 |
commit | 49bffb439375cda64cd3d83b3e2feb7c2d3de0e8 (patch) | |
tree | f97c44187e6228a4a3e0b1fd746972cb3cae9cf3 /configd/src/apps/sentinel/metrics.h | |
parent | 93822f4da059d7507d852f186b6d5d9b1653920d (diff) |
after 2 hours of no restarts, reset counter to 0
Diffstat (limited to 'configd/src/apps/sentinel/metrics.h')
-rw-r--r-- | configd/src/apps/sentinel/metrics.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configd/src/apps/sentinel/metrics.h b/configd/src/apps/sentinel/metrics.h index d87220c52e1..5b94b2da31a 100644 --- a/configd/src/apps/sentinel/metrics.h +++ b/configd/src/apps/sentinel/metrics.h @@ -20,11 +20,13 @@ struct StartMetrics { Gauge sentinel_totalRestarts; Gauge sentinel_running; Gauge sentinel_uptime; + vespalib::steady_time lastRestartTime; StartMetrics(); ~StartMetrics(); void maybeLog(); + void incRestartsCounter(); }; } |