mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat(gateway): push shard latency to prometheus
This commit is contained in:
parent
b2b9623942
commit
e88d6b7e2a
1 changed files with 2 additions and 0 deletions
|
|
@ -85,6 +85,8 @@ impl ShardStateManager {
|
|||
.recent()
|
||||
.first()
|
||||
.map_or_else(|| 0, |d| d.as_millis()) as i32;
|
||||
gauge!("pluralkit_gateway_shard_latency", "shard_id" => shard_id.to_string())
|
||||
.set(info.latency);
|
||||
self.save_shard(shard_id, info).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue