-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use blocking subscribe everywhere (#296)
* fix: use blocking relay subscribe everywhere * chore: add Grafana metrics * chore: increase timeouts * chore: log expected tag and topic * chore: switch to prod relay * fix: replication lag * chore: reduce replication lag sleep for now * chore: increase message delivery timeout * fix: update tokio to fix PoolTimedOut errors: launchbadge/sqlx#2881 (comment) * chore: remove test parallel * fix: use relay HTTP client for tests (#316) * fix: use relay HTTP client for tests * fix: run CI when tests are changed
- Loading branch information
1 parent
b654f98
commit e762a83
Showing
17 changed files
with
715 additions
and
643 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,4 +87,4 @@ jobs: | |
uses: WalletConnect/actions-rs/[email protected] | ||
with: | ||
command: test | ||
args: --test integration | ||
args: --test integration -- --test-threads=1 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
50 changes: 50 additions & 0 deletions
50
terraform/monitoring/panels/app/relay_subscribe_failures.libsonnet
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,50 @@ | ||
local grafana = import '../../grafonnet-lib/grafana.libsonnet'; | ||
local defaults = import '../../grafonnet-lib/defaults.libsonnet'; | ||
|
||
local panels = grafana.panels; | ||
local targets = grafana.targets; | ||
|
||
{ | ||
new(ds, vars):: | ||
panels.timeseries( | ||
title = 'Relay Subscribe Errors', | ||
datasource = ds.prometheus, | ||
) | ||
.configure(defaults.configuration.timeseries) | ||
|
||
.setAlert(vars.environment, grafana.alert.new( | ||
namespace = vars.namespace, | ||
name = '%(env)s - Failed to subscribe to relay topic' % { env: vars.environment }, | ||
message = '%(env)s - Failed to subscribe to relay topic' % { env: vars.environment }, | ||
notifications = vars.notifications, | ||
noDataState = 'no_data', | ||
period = '0m', | ||
conditions = [ | ||
grafana.alertCondition.new( | ||
evaluatorParams = [ 0 ], | ||
evaluatorType = 'gt', | ||
operatorType = 'or', | ||
queryRefId = 'RelaySubscribesPermenantFailures', | ||
queryTimeStart = '5m', | ||
queryTimeEnd = 'now', | ||
reducerType = grafana.alert_reducers.Avg | ||
), | ||
], | ||
)) | ||
|
||
.addTarget(targets.prometheus( | ||
datasource = ds.prometheus, | ||
expr = 'sum by (aws_ecs_task_revision) (increase(relay_subscribe_failures_total{is_permenant="true"}[$__rate_interval]))', | ||
legendFormat = 'Permenant r{{aws_ecs_task_revision}}', | ||
exemplar = true, | ||
refId = 'RelaySubscribePermenantFailures', | ||
)) | ||
|
||
.addTarget(targets.prometheus( | ||
datasource = ds.prometheus, | ||
expr = 'sum by (aws_ecs_task_revision) (increase(relay_subscribe_failures_total{is_permenant="false"}[$__rate_interval]))', | ||
legendFormat = 'Temporary r{{aws_ecs_task_revision}}', | ||
exemplar = true, | ||
refId = 'RelaySubscribeTemporaryFailures', | ||
)) | ||
} |
33 changes: 33 additions & 0 deletions
33
terraform/monitoring/panels/app/relay_subscribe_latency.libsonnet
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,33 @@ | ||
local grafana = import '../../grafonnet-lib/grafana.libsonnet'; | ||
local defaults = import '../../grafonnet-lib/defaults.libsonnet'; | ||
|
||
local panels = grafana.panels; | ||
local targets = grafana.targets; | ||
|
||
{ | ||
new(ds, vars):: | ||
panels.timeseries( | ||
title = 'Relay Subscribe Latency', | ||
datasource = ds.prometheus, | ||
) | ||
.configure( | ||
defaults.configuration.timeseries | ||
.withUnit('ms') | ||
) | ||
|
||
.addTarget(targets.prometheus( | ||
datasource = ds.prometheus, | ||
expr = 'sum by (aws_ecs_task_revision) (rate(relay_subscribe_latency_sum[$__rate_interval])) / sum by (aws_ecs_task_revision) (rate(relay_subscribe_latency_count[$__rate_interval]))', | ||
legendFormat = 'Publish w/ retries r{{aws_ecs_task_revision}}', | ||
exemplar = false, | ||
refId = 'RelaySubscribeLatency', | ||
)) | ||
|
||
.addTarget(targets.prometheus( | ||
datasource = ds.prometheus, | ||
expr = 'sum by (aws_ecs_task_revision) (rate(relay_subscribe_request_latency_sum[$__rate_interval])) / sum by (aws_ecs_task_revision) (rate(relay_subscribe_request_latency_count[$__rate_interval]))', | ||
legendFormat = 'Individual RPC r{{aws_ecs_task_revision}}', | ||
exemplar = false, | ||
refId = 'RelaySubscribeRequestLatency', | ||
)) | ||
} |
25 changes: 25 additions & 0 deletions
25
terraform/monitoring/panels/app/relay_subscribe_rate.libsonnet
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,25 @@ | ||
local grafana = import '../../grafonnet-lib/grafana.libsonnet'; | ||
local defaults = import '../../grafonnet-lib/defaults.libsonnet'; | ||
|
||
local panels = grafana.panels; | ||
local targets = grafana.targets; | ||
|
||
{ | ||
new(ds, vars):: | ||
panels.timeseries( | ||
title = 'Relay Subscribe Rate', | ||
datasource = ds.prometheus, | ||
) | ||
.configure( | ||
defaults.configuration.timeseries | ||
.withUnit('cps') | ||
) | ||
|
||
.addTarget(targets.prometheus( | ||
datasource = ds.prometheus, | ||
expr = 'sum by (aws_ecs_task_revision, tag) (rate(relay_subscribes_total[$__rate_interval]))', | ||
legendFormat = '{{tag}} r{{aws_ecs_task_revision}}', | ||
exemplar = true, | ||
refId = 'RelaySubscribesRate', | ||
)) | ||
} |
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
Oops, something went wrong.