fix prometheus rule selector and bump versions
This commit is contained in:
parent
d3c4b602c4
commit
29024da142
|
@ -14,11 +14,12 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: helium-blockchain-exporter
|
- name: helium-blockchain-exporter
|
||||||
image: badjware/helium-blockchain-exporter
|
image: badjware/helium-blockchain-exporter
|
||||||
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: ACCOUNTS
|
- name: ACCOUNTS
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: blackbox-exporter-config
|
name: helium-blockchain-exporter-config
|
||||||
key: ACCOUNTS
|
key: ACCOUNTS
|
||||||
args:
|
args:
|
||||||
- -accounts
|
- -accounts
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
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]))
|
|
@ -1,9 +1,10 @@
|
||||||
resources:
|
resources:
|
||||||
- helium-blockchain-exporter-deployment.yaml
|
- helium-blockchain-exporter-deployment.yaml
|
||||||
- helium-blockchain-exporter-servicemonitor.yaml
|
- helium-blockchain-exporter-servicemonitor.yaml
|
||||||
|
- helium-blockchain-exporter-prometheusrule.yaml
|
||||||
|
|
||||||
configMapGenerator:
|
configMapGenerator:
|
||||||
- name: blackbox-exporter-config
|
- name: helium-blockchain-exporter-config
|
||||||
literals:
|
literals:
|
||||||
# set the helium accounts to scrape here
|
# set the helium accounts to scrape here
|
||||||
- ACCOUNTS=
|
- ACCOUNTS=
|
|
@ -4,6 +4,9 @@ metadata:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: prometheus
|
serviceAccountName: prometheus
|
||||||
|
ruleSelector:
|
||||||
|
matchLabels:
|
||||||
|
monitor: prometheus
|
||||||
serviceMonitorSelector:
|
serviceMonitorSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
monitor: prometheus
|
monitor: prometheus
|
||||||
|
|
|
@ -10,18 +10,18 @@ resources:
|
||||||
|
|
||||||
images:
|
images:
|
||||||
- name: gitea/gitea
|
- name: gitea/gitea
|
||||||
newTag: 1.15.0
|
newTag: 1.15.7
|
||||||
- name: grafana/grafana
|
- name: grafana/grafana
|
||||||
newTag: 8.1.3
|
newTag: 8.3.3
|
||||||
- name: prom/node-exporter
|
- name: prom/node-exporter
|
||||||
newTag: v0.18.1
|
newTag: v0.18.1
|
||||||
- name: prom/blackbox-exporter
|
- name: prom/blackbox-exporter
|
||||||
newName: badjware/blackbox-exporter-tweak
|
newName: badjware/blackbox-exporter-tweak
|
||||||
newTag: 0.19.0-1
|
newTag: 0.19.0-1
|
||||||
- name: drone/drone
|
- name: drone/drone
|
||||||
newTag: 2.0.6
|
newTag: 2.7.0
|
||||||
- name: drone/drone-runner-kube
|
- name: drone/drone-runner-kube
|
||||||
newTag: 1.0.0-beta.9
|
newTag: 1.0.0-rc.2
|
||||||
- name: nextcloud
|
- name: nextcloud
|
||||||
newName: badjware/nextcloud-tweak
|
newName: badjware/nextcloud-tweak
|
||||||
newTag: 22.1.0-2
|
newTag: 22.1.0-2
|
||||||
|
@ -31,7 +31,7 @@ images:
|
||||||
newTag: 6.2.5
|
newTag: 6.2.5
|
||||||
|
|
||||||
configMapGenerator:
|
configMapGenerator:
|
||||||
- name: blackbox-exporter-config
|
- name: helium-blockchain-exporter-config
|
||||||
behavior: replace
|
behavior: replace
|
||||||
literals:
|
literals:
|
||||||
- ACCOUNTS=13ntuT3ZC5A1RKEUciXh7qxvQvZ38azqBPHSdUGTpun8evVVTVy
|
- ACCOUNTS=13ntuT3ZC5A1RKEUciXh7qxvQvZ38azqBPHSdUGTpun8evVVTVy
|
||||||
|
|
Loading…
Reference in New Issue