Files
pezkuwi-sdk/bizinikiwi/scripts/ci/monitoring/alerting-rules/alerting-rule-tests.yaml
T
pezkuwichain 379cb741ed feat: Rebrand Polkadot/Substrate references to PezkuwiChain
This commit systematically rebrands various references from Parity Technologies'
Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk.

Key changes include:
- Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks.
- Modified internal documentation and code comments to reflect PezkuwiChain naming and structure.
- Replaced direct references to  with  or specific paths within the  for XCM, Pezkuwi, and other modules.
- Cleaned up deprecated  issue and PR references in various  and  files, particularly in  and  modules.
- Adjusted image and logo URLs in documentation to point to PezkuwiChain assets.
- Removed or rephrased comments related to external Polkadot/Substrate PRs and issues.

This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
2025-12-14 00:04:10 +03:00

240 lines
10 KiB
YAML

rule_files:
- /dev/stdin
evaluation_interval: 1m
tests:
- interval: 1m
input_series:
- series: 'bizinikiwi_sub_libp2p_peers_count{
job="bizinikiwi",
pod="bizinikiwi-abcdef01234-abcdef",
instance="bizinikiwi-abcdef01234-abcdef",
}'
values: '3 2+0x4 1+0x9' # 3 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
- series: 'bizinikiwi_sub_txpool_validations_scheduled{
job="bizinikiwi",
pod="bizinikiwi-abcdef01234-abcdef",
instance="bizinikiwi-abcdef01234-abcdef",
}'
values: '11+1x10 22+2x30 10043x5'
- series: 'bizinikiwi_sub_txpool_validations_finished{
job="bizinikiwi",
pod="bizinikiwi-abcdef01234-abcdef",
instance="bizinikiwi-abcdef01234-abcdef",
}'
values: '0+1x42 42x5'
- series: 'bizinikiwi_block_height{
status="best", job="bizinikiwi",
pod="bizinikiwi-abcdef01234-abcdef",
instance="bizinikiwi-abcdef01234-abcdef",
}'
values: '1+1x3 4+0x13' # 1 2 3 4 4 4 4 4 4 4 4 4 ...
- series: 'bizinikiwi_block_height{
status="finalized",
job="bizinikiwi",
pod="bizinikiwi-abcdef01234-abcdef",
instance="bizinikiwi-abcdef01234-abcdef",
}'
values: '1+1x3 4+0x13' # 1 2 3 4 4 4 4 4 4 4 4 4 ...
alert_rule_test:
######################################################################
# Block production
######################################################################
- eval_time: 6m
alertname: BlockProductionSlow
exp_alerts:
- eval_time: 7m
alertname: BlockProductionSlow
exp_alerts:
- exp_labels:
severity: warning
pod: bizinikiwi-abcdef01234-abcdef
instance: bizinikiwi-abcdef01234-abcdef
job: bizinikiwi
status: best
exp_annotations:
message: "Best block on instance
bizinikiwi-abcdef01234-abcdef increases by less than 1 per
minute for more than 3 minutes."
- eval_time: 14m
alertname: BlockProductionSlow
exp_alerts:
- exp_labels:
severity: warning
pod: bizinikiwi-abcdef01234-abcdef
instance: bizinikiwi-abcdef01234-abcdef
job: bizinikiwi
status: best
exp_annotations:
message: "Best block on instance
bizinikiwi-abcdef01234-abcdef increases by less than 1 per
minute for more than 3 minutes."
- exp_labels:
severity: critical
pod: bizinikiwi-abcdef01234-abcdef
instance: bizinikiwi-abcdef01234-abcdef
job: bizinikiwi
status: best
exp_annotations:
message: "Best block on instance
bizinikiwi-abcdef01234-abcdef increases by less than 1 per
minute for more than 10 minutes."
######################################################################
# Block finalization
######################################################################
- eval_time: 6m
alertname: BlockFinalizationSlow
exp_alerts:
- eval_time: 7m
alertname: BlockFinalizationSlow
exp_alerts:
- exp_labels:
severity: warning
pod: bizinikiwi-abcdef01234-abcdef
instance: bizinikiwi-abcdef01234-abcdef
job: bizinikiwi
status: finalized
exp_annotations:
message: "Finalized block on instance
bizinikiwi-abcdef01234-abcdef increases by less than 1 per
minute for more than 3 minutes."
- eval_time: 14m
alertname: BlockFinalizationSlow
exp_alerts:
- exp_labels:
severity: warning
pod: bizinikiwi-abcdef01234-abcdef
instance: bizinikiwi-abcdef01234-abcdef
job: bizinikiwi
status: finalized
exp_annotations:
message: "Finalized block on instance
bizinikiwi-abcdef01234-abcdef increases by less than 1 per
minute for more than 3 minutes."
- exp_labels:
severity: critical
pod: bizinikiwi-abcdef01234-abcdef
instance: bizinikiwi-abcdef01234-abcdef
job: bizinikiwi
status: finalized
exp_annotations:
message: "Finalized block on instance
bizinikiwi-abcdef01234-abcdef increases by less than 1 per
minute for more than 10 minutes."
######################################################################
# Transaction queue
######################################################################
- eval_time: 11m
alertname: TransactionQueueSizeIncreasing
# Number of validations scheduled and finished both grow at a rate
# of 1 in the first 10 minutes, thereby the queue is not increasing
# in size, thus don't expect an alert.
exp_alerts:
- eval_time: 22m
alertname: TransactionQueueSizeIncreasing
# Number of validations scheduled is growing twice as fast as the
# number of validations finished after minute 10. Thus expect
# warning alert after 20 minutes.
exp_alerts:
- exp_labels:
severity: warning
pod: bizinikiwi-abcdef01234-abcdef
instance: bizinikiwi-abcdef01234-abcdef
job: bizinikiwi
exp_annotations:
message: "The transaction pool size on node
bizinikiwi-abcdef01234-abcdef has been monotonically
increasing for more than 10 minutes."
- eval_time: 43m
alertname: TransactionQueueSizeIncreasing
# Number of validations scheduled is growing twice as fast as the
# number of validations finished after minute 10. Thus expect
# both warning and critical alert after 40 minutes.
exp_alerts:
- exp_labels:
severity: warning
pod: bizinikiwi-abcdef01234-abcdef
instance: bizinikiwi-abcdef01234-abcdef
job: bizinikiwi
exp_annotations:
message: "The transaction pool size on node
bizinikiwi-abcdef01234-abcdef has been monotonically
increasing for more than 10 minutes."
- exp_labels:
severity: warning
pod: bizinikiwi-abcdef01234-abcdef
instance: bizinikiwi-abcdef01234-abcdef
job: bizinikiwi
exp_annotations:
message: "The transaction pool size on node
bizinikiwi-abcdef01234-abcdef has been monotonically
increasing for more than 30 minutes."
- eval_time: 49m
alertname: TransactionQueueSizeHigh
# After minute 43 the number of validations scheduled jumps up
# drastically while the number of validations finished stays the
# same. Thus expect an alert.
exp_alerts:
- exp_labels:
severity: warning
pod: bizinikiwi-abcdef01234-abcdef
instance: bizinikiwi-abcdef01234-abcdef
job: bizinikiwi
exp_annotations:
message: "The transaction pool size on node
bizinikiwi-abcdef01234-abcdef has been above 10_000 for more
than 5 minutes."
######################################################################
# Networking
######################################################################
- eval_time: 3m # Values: 3 2 2
alertname: NumberOfPeersLow
exp_alerts:
- eval_time: 4m # Values: 2 2 2
alertname: NumberOfPeersLow
exp_alerts:
- exp_labels:
severity: warning
pod: bizinikiwi-abcdef01234-abcdef
instance: bizinikiwi-abcdef01234-abcdef
job: bizinikiwi
exp_annotations:
message: "The node bizinikiwi-abcdef01234-abcdef has less
than 3 peers for more than 3 minutes"
- eval_time: 16m # Values: 3 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1
alertname: NumberOfPeersLow
exp_alerts:
- exp_labels:
severity: warning
pod: bizinikiwi-abcdef01234-abcdef
instance: bizinikiwi-abcdef01234-abcdef
job: bizinikiwi
exp_annotations:
message: "The node bizinikiwi-abcdef01234-abcdef has less
than 3 peers for more than 3 minutes"
- exp_labels:
severity: critical
pod: bizinikiwi-abcdef01234-abcdef
instance: bizinikiwi-abcdef01234-abcdef
job: bizinikiwi
exp_annotations:
message: "The node bizinikiwi-abcdef01234-abcdef has less
than 3 peers for more than 15 minutes"