From df4016bf6afe6822172bed9c7939dfe4f3fd76fe Mon Sep 17 00:00:00 2001 From: samber Date: Sat, 20 Jan 2024 19:34:37 +0000 Subject: [PATCH] Publish --- dist/rules/graph-node/embedded-exporter.yml | 40 ++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/dist/rules/graph-node/embedded-exporter.yml b/dist/rules/graph-node/embedded-exporter.yml index ec555b688..a8d07685e 100644 --- a/dist/rules/graph-node/embedded-exporter.yml +++ b/dist/rules/graph-node/embedded-exporter.yml @@ -4,56 +4,56 @@ groups: rules: - - alert: ProviderNetVersionFailed + - alert: ProviderFailedBecauseNet_versionFailed 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}}" + summary: Provider failed because net_version failed (instance {{ $labels.instance }}) + description: "Failed net_version for Provider `{{$labels.provider}}` in Graph node `{{$labels.instance}}`\n VALUE = {{ $value }}\n LABELS = {{ $labels }}" - - alert: ProviderGetGenesisFailed + - alert: ProviderFailedBecauseGetGenesisFailed 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}}" + summary: Provider failed because get genesis failed (instance {{ $labels.instance }}) + description: "Failed to get genesis for Provider `{{$labels.provider}}` in Graph node `{{$labels.instance}}`\n VALUE = {{ $value }}\n LABELS = {{ $labels }}" - - alert: ProviderNetVersionTimeout + - alert: ProviderFailedBecauseNet_versionTimeout 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}}" + summary: Provider failed because net_version timeout (instance {{ $labels.instance }}) + description: "net_version timeout for Provider `{{$labels.provider}}` in Graph node `{{$labels.instance}}`\n VALUE = {{ $value }}\n LABELS = {{ $labels }}" - - alert: ProviderGetGenesisTimeout + - alert: ProviderFailedBecauseGetGenesisTimeout 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}}" + summary: Provider failed because get genesis timeout (instance {{ $labels.instance }}) + description: "Timeout to get genesis for Provider `{{$labels.provider}}` in Graph node `{{$labels.instance}}`\n VALUE = {{ $value }}\n LABELS = {{ $labels }}" - - alert: StoreConnectionSlow + - alert: StoreConnectionIsTooSlow expr: 'store_connection_wait_time_ms > 10' - for: 1m + for: 0m 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}}" + summary: Store connection is too slow (instance {{ $labels.instance }}) + description: "Store connection is too slow to `{{$labels.pool}}` pool, `{{$labels.shard}}` shard in Graph node `{{$labels.instance}}`\n VALUE = {{ $value }}\n LABELS = {{ $labels }}" - - alert: StoreConnectionTooSlow + - alert: StoreConnectionIsTooSlow expr: 'store_connection_wait_time_ms > 20' - for: 1m + for: 0m 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}}" + summary: Store connection is too slow (instance {{ $labels.instance }}) + description: "Store connection is too slow to `{{$labels.pool}}` pool, `{{$labels.shard}}` shard in Graph node `{{$labels.instance}}`\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"