1
0
Fork 0
home-stack-kustomize/kustomize/bases/helium-blockchain-exporter/helium-blockchain-exporter-...

34 lines
1.8 KiB
YAML

apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: helium-blockchain-exporter-rules
labels:
monitor: prometheus
spec:
groups:
- name: helium-blockchain-exporter-rules
interval: 5m
rules:
# Accounts
- record: account:helium_account_deposits_hnt:increase30m
expr: sum by (account) (increase(helium_account_deposits_hnt_total[30m]))
- record: account:helium_account_withdrawals_hnt:increase30m
expr: -sum by (account) (increase(helium_account_withdrawals_hnt_total[30m]))
- record: type:helium_account_activity:floor_increase30m
expr: sum by (account, type) (floor(increase(helium_account_activity_total[30m])))
- record: account:helium_account_rewards_hnt:increase1h
expr: sum by (account) (increase(helium_account_rewards_hnt_total[1h]))
- record: account:helium_account_rewards_hnt:increase24h
expr: sum by (account) (increase(helium_account_rewards_hnt_total[24h]))
# Hotspots
- record: type:helium_hotspot_activity:floor_increase30m
expr: sum by (account, hotspot, hotspot_name, type) (floor(increase(helium_hotspot_activity_total[30m])))
- record: hotspot:helium_hotspot_rewards_hnt:increase30m
expr: sum by (account, hotspot, hotspot_name) (increase(helium_hotspot_rewards_hnt_total[30m]))
- record: hotspot:helium_hotspot_rewards_hnt:increase1h
expr: sum by (account, hotspot, hotspot_name) (increase(helium_hotspot_rewards_hnt_total[1h]))
- record: hotspot:helium_hotspot_rewards_hnt:increase24h
expr: sum by (account, hotspot, hotspot_name) (increase(helium_hotspot_rewards_hnt_total[24h]))
- record: hotspot:helium_hotspot_rewards_hnt:increase7d
expr: sum by (account, hotspot, hotspot_name) (increase(helium_hotspot_rewards_hnt_total[7d]))