1
0
Fork 0

remove helium-blockchain-exporter

This commit is contained in:
Massaki Archambault 2022-05-25 23:32:20 -04:00
parent 0d773a6a7a
commit 56c3ee9225
6 changed files with 1 additions and 115 deletions

View File

@ -1,50 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: helium-blockchain-exporter
spec:
selector:
matchLabels:
app.kubernetes.io/name: helium-blockchain-exporter
template:
metadata:
labels:
app.kubernetes.io/name: helium-blockchain-exporter
spec:
containers:
- name: helium-blockchain-exporter
image: badjware/helium-blockchain-exporter
imagePullPolicy: Always
env:
- name: ACCOUNTS
valueFrom:
configMapKeyRef:
name: helium-blockchain-exporter-config
key: ACCOUNTS
args:
- -accounts
- $(ACCOUNTS)
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 100m
memory: 100Mi
ports:
- containerPort: 9865
name: http-metrics
---
apiVersion: v1
kind: Service
metadata:
name: helium-blockchain-exporter
labels:
app.kubernetes.io/name: helium-blockchain-exporter
spec:
selector:
app.kubernetes.io/name: helium-blockchain-exporter
ports:
- name: http-metrics
port: 9865
targetPort: http-metrics

View File

@ -1,8 +0,0 @@
resources:
- helium-blockchain-exporter-deployment.yaml
configMapGenerator:
- name: helium-blockchain-exporter-config
literals:
# set the helium accounts to scrape here
- ACCOUNTS=

View File

@ -2,17 +2,14 @@ bases:
- ../../bases/prometheus
- ../../bases/node-exporter
- ../../bases/blackbox-exporter
- ../../bases/helium-blockchain-exporter
- ../../bases/kube-state-metrics
- servicemonitors/any-namespaces-http.yaml
- servicemonitors/kubelet.yaml
- servicemonitors/longhorn.yaml
- servicemonitors/prometheus.yaml
- servicemonitors/kube-state-metrics.yaml
- servicemonitors/helium-blockchain-exporter.yaml
- servicemonitors/node-exporter.yaml
- probes/blackbox-exporter.yaml
- prometheusrules/helium-blockchain-exporter.yaml
resources:
- namespace.yaml

View File

@ -1,34 +0,0 @@
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]))

View File

@ -1,15 +0,0 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: helium-blockchain-exporter
labels:
app.kubernetes.io/name: helium-blockchain-exporter
monitor: prometheus
spec:
selector:
matchLabels:
app.kubernetes.io/name: helium-blockchain-exporter
endpoints:
- port: http-metrics
interval: 60s
scrapeTimeout: 30s

View File

@ -30,11 +30,7 @@ images:
- name: redis
newTag: 6.2.5
configMapGenerator:
- name: helium-blockchain-exporter-config
behavior: replace
literals:
- ACCOUNTS=13ntuT3ZC5A1RKEUciXh7qxvQvZ38azqBPHSdUGTpun8evVVTVy
configMapGenerator: []
secretGenerator:
- name: drone-secret