This repository has been archived by the owner on Aug 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat add in-flight transfers metrics (#101)
* feat: add in-flight transfers metrics to grafana * feat: add grafana chart for in-flight transfers Co-authored-by: Sebastien Verreault <[email protected]>
- Loading branch information
1 parent
fd88ad0
commit 65fb314
Showing
7 changed files
with
196 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SELECT | ||
count(*) AS total_in_flight_transfers_count, | ||
count(*) FILTER (WHERE ifl.is_deposit_on_exchange = true and ifl.is_completed = true) AS completed_deposit_count, | ||
count(*) FILTER (WHERE ifl.is_deposit_on_exchange = false and ifl.is_completed = true) AS completed_withdrawal_count, | ||
count(*) FILTER (WHERE ifl.is_deposit_on_exchange = true and ifl.is_completed = false) AS pending_deposit_count, | ||
count(*) FILTER (WHERE ifl.is_deposit_on_exchange = false and ifl.is_completed = false) AS pending_withdrawal_count | ||
FROM dealer.in_flight ifl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters