forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgistpin-exporter-rules.yml
More file actions
54 lines (50 loc) · 2.07 KB
/
Copy pathgistpin-exporter-rules.yml
File metadata and controls
54 lines (50 loc) · 2.07 KB
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
# Prometheus alert rules — GistPin custom exporters
# Reference this file in prometheus.yml rule_files section
groups:
- name: gistpin-exporters
rules:
- alert: GistCreationRateLow
expr: rate(gistpin_gists_total[5m]) < 0.1
for: 10m
labels:
severity: warning
component: gist-exporter
annotations:
summary: "Gist creation rate unusually low"
description: "Gist creation rate is {{ $value }} gists/min — may indicate an issue."
- alert: GistCreationRateHigh
expr: rate(gistpin_gists_total[5m]) > 100
for: 5m
labels:
severity: info
component: gist-exporter
annotations:
summary: "Gist creation rate spike"
description: "Gist creation rate is {{ $value }} gists/min — verify this is expected traffic."
- alert: SorobanTxFailureRateHigh
expr: rate(gistpin_soroban_transactions_total{status="failed"}[5m]) / rate(gistpin_soroban_transactions_total[5m]) > 0.1
for: 5m
labels:
severity: critical
component: soroban-exporter
annotations:
summary: "High Soroban transaction failure rate"
description: "Transaction failure rate is {{ $value | humanizePercentage }}."
- alert: IPFSPinCountIncreaseRapid
expr: increase(gistpin_ipfs_total_pins[10m]) > 1000
for: 5m
labels:
severity: warning
component: soroban-exporter
annotations:
summary: "Rapid IPFS pin growth"
description: "IPFS pins increased by {{ $value }} in the last 10 minutes."
- alert: DBConnectionPoolExhausted
expr: gistpin_db_pool_connections{state="active"} / (gistpin_db_pool_connections{state="active"} + gistpin_db_pool_connections{state="idle"}) > 0.9
for: 5m
labels:
severity: warning
component: gist-exporter
annotations:
summary: "Database connection pool near exhaustion"
description: "Connection pool is {{ $value | humanizePercentage }} utilized."