Skip to content

Commit

Permalink
add uptime metric to sui security watchdog (#17223)
Browse files Browse the repository at this point in the history
## Description 

adds an uptime metric to the sui security watchdog process
  • Loading branch information
johnjmartin authored Jun 18, 2024
1 parent b7a94e7 commit 6efedf3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/sui-security-watchdog/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ async fn main() -> Result<()> {
);
let registry: Registry = registry_service.default_registry();
mysten_metrics::init_metrics(&registry);
registry
.register(mysten_metrics::uptime_metric(
"security-watchdog",
"v0",
"N/A",
))
.unwrap();
let service = SchedulerService::new(&config, &registry, pd_api_key, sf_password).await?;
service.schedule().await?;
service.start().await?;
Expand Down

0 comments on commit 6efedf3

Please sign in to comment.