-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add rules for Graph Node (#387)
Co-authored-by: josedev-union <josedev-union@users.noreply.github.com>
- Loading branch information
1 parent
31a27fb
commit c6ff5a5
Showing
3 changed files
with
90 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
groups: | ||
|
||
- name: EmbeddedExporter | ||
|
||
rules: | ||
|
||
- alert: ProviderNetVersionFailed | ||
expr: 'eth_rpc_status == 1' | ||
for: 0m | ||
labels: | ||
severity: critical | ||
annotations: | ||
summary: Provider net_version failed (provider {{$labels.provider}}, node {{$labels.instance}}) | ||
description: "Failed net_version for Provider {{$labels.provider}} in Graph node {{$labels.instance}}" | ||
|
||
- alert: ProviderGetGenesisFailed | ||
expr: 'eth_rpc_status == 2' | ||
for: 0m | ||
labels: | ||
severity: critical | ||
annotations: | ||
summary: Provider get genesis failed (provider {{$labels.provider}}, node {{$labels.instance}}) | ||
description: "Failed to get genesis for Provider {{$labels.provider}} in Graph node {{$labels.instance}}" | ||
|
||
- alert: ProviderNetVersionTimeout | ||
expr: 'eth_rpc_status == 3' | ||
for: 0m | ||
labels: | ||
severity: critical | ||
annotations: | ||
summary: Provider net_version timeout (provider {{$labels.provider}}, node {{$labels.instance}}) | ||
description: "net_version timeout for Provider {{$labels.provider}} in Graph node {{$labels.instance}}" | ||
|
||
- alert: ProviderGetGenesisTimeout | ||
expr: 'eth_rpc_status == 4' | ||
for: 0m | ||
labels: | ||
severity: critical | ||
annotations: | ||
summary: Provider get genesis timeout (provider {{$labels.provider}}, node {{$labels.instance}}) | ||
description: "Timeout to get genesis for Provider {{$labels.provider}} in Graph node {{$labels.instance}}" | ||
|
||
- alert: StoreConnectionSlow | ||
expr: 'store_connection_wait_time_ms > 10' | ||
for: 1m | ||
labels: | ||
severity: warning | ||
annotations: | ||
summary: Store connection is slow (pool {{$labels.pool}}, shard {{$labels.shard}}, node {{$labels.instance}}) | ||
description: "Store connection is slow to {{$labels.pool}} pool, {{$labels.shard}} shard in Graph node {{$labels.instance}}" | ||
|
||
- alert: StoreConnectionTooSlow | ||
expr: 'store_connection_wait_time_ms > 20' | ||
for: 1m | ||
labels: | ||
severity: critical | ||
annotations: | ||
summary: Store connection is too slow (pool {{$labels.pool}}, shard {{$labels.shard}}, node {{$labels.instance}}) | ||
description: "Store connection is too slow to {{$labels.pool}} pool, {{$labels.shard}} shard in Graph node {{$labels.instance}}" |