-
Notifications
You must be signed in to change notification settings - Fork 7
/
sample.config.yaml
98 lines (98 loc) · 2.86 KB
/
sample.config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
network:
name: "pythnet"
http_endpoint: "https://api2.pythnet.pyth.network"
ws_endpoint: "wss://api2.pythnet.pyth.network"
first_mapping: "AHtgzX45WTKfkPG53L6WYhGEXwQkN1BVknET3sVsLL8J"
crosschain_endpoint: "https://hermes.pyth.network"
request_rate_limit: 10
request_rate_period: 1
events:
- LogEvent
# - DatadogEvent
# - TelegramEvent
- ZendutyEvent
# Alert thresholds apply to Zenduty and Telegram events
# - Checks run approximately once per minute
# - `alert_threshold`: number of failures within 5 minutes >= to this value trigger an alert (default: 5)
# - `resolution_threshold`: number of failures within 5 minutes <= this value resolve the alert (default: 3)
checks:
global:
# Price feed checks
PriceFeedOfflineCheck:
enable: true
max_slot_distance: 120
abandoned_slot_distance: 100000
alert_threshold: 3
resolution_threshold: 0
PriceFeedCoinGeckoCheck:
enable: true
max_deviation: 5
max_staleness: 60
PriceFeedCrossChainOnlineCheck:
enable: true
max_staleness: 60
PriceFeedCrossChainDeviationCheck:
enable: true
max_deviation: 5
max_staleness: 60
# Publisher checks
PublisherWithinAggregateConfidenceCheck:
enable: false
max_interval_distance: 20
PublisherConfidenceIntervalCheck:
enable: false
min_confidence_interval: 0
PublisherOfflineCheck:
enable: false
max_slot_distance: 25
abandoned_slot_distance: 10000
PublisherPriceCheck:
enable: true
max_slot_distance: 25
max_aggregate_distance: 5
alert_threshold: 2
resolution_threshold: 1
PublisherStalledCheck:
enable: false
stall_time_limit: 120
abandoned_time_limit: 300
max_slot_distance: 25
noise_threshold: 0.0001
min_noise_samples: 10
alert_threshold: 1
resolution_threshold: 0
# Per-symbol config
Crypto.ANC/USD:
PublisherPriceCheck:
enable: true
max_slot_distance: 25
max_aggregate_distance: 50
Crypto.MIR/USD:
PublisherPriceCheck:
enable: true
max_slot_distance: 25
max_aggregate_distance: 25
Crypto.MNGO/USD:
PriceFeedOfflineCheck:
max_slot_distance: 100000
Crypto.SLND/USD:
PriceFeedOfflineCheck:
max_slot_distance: 100000
Crypto.SNY/USD:
PriceFeedOfflineCheck:
max_slot_distance: 100000
Crypto.PORT/USD:
PriceFeedOfflineCheck:
max_slot_distance: 100000
FX.USD/HKD:
PriceFeedOfflineCheck:
max_slot_distance: 10000
Crypto.ZBC/USD:
PublisherPriceCheck:
max_aggregate_distance: 30
Crypto.BTC/USD:
PublisherStalledCheck:
enable: true
stall_time_limit: 300 # This will override the global stall_time_limit for Crypto.BTC/USD
abandoned_time_limit: 600 # This will override the global abandoned_time_limit for Crypto.BTC/USD
max_slot_distance: 25