diff --git a/kustomize/bases/helium-blockchain-exporter/helium-blockchain-exporter-deployment.yaml b/kustomize/bases/helium-blockchain-exporter/helium-blockchain-exporter-deployment.yaml deleted file mode 100644 index c4d145a..0000000 --- a/kustomize/bases/helium-blockchain-exporter/helium-blockchain-exporter-deployment.yaml +++ /dev/null @@ -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 diff --git a/kustomize/bases/helium-blockchain-exporter/kustomization.yaml b/kustomize/bases/helium-blockchain-exporter/kustomization.yaml deleted file mode 100644 index b7aeebc..0000000 --- a/kustomize/bases/helium-blockchain-exporter/kustomization.yaml +++ /dev/null @@ -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= \ No newline at end of file diff --git a/kustomize/namespaces/monitoring/kustomization.yaml b/kustomize/namespaces/monitoring/kustomization.yaml index a0eae87..6f160c6 100644 --- a/kustomize/namespaces/monitoring/kustomization.yaml +++ b/kustomize/namespaces/monitoring/kustomization.yaml @@ -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 diff --git a/kustomize/namespaces/monitoring/prometheusrules/helium-blockchain-exporter.yaml b/kustomize/namespaces/monitoring/prometheusrules/helium-blockchain-exporter.yaml deleted file mode 100644 index 03651fb..0000000 --- a/kustomize/namespaces/monitoring/prometheusrules/helium-blockchain-exporter.yaml +++ /dev/null @@ -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])) \ No newline at end of file diff --git a/kustomize/namespaces/monitoring/servicemonitors/helium-blockchain-exporter.yaml b/kustomize/namespaces/monitoring/servicemonitors/helium-blockchain-exporter.yaml deleted file mode 100644 index 60e005e..0000000 --- a/kustomize/namespaces/monitoring/servicemonitors/helium-blockchain-exporter.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/kustomize/overlays/prod/kustomization.yaml b/kustomize/overlays/prod/kustomization.yaml index 4a12e08..f3be1fd 100644 --- a/kustomize/overlays/prod/kustomization.yaml +++ b/kustomize/overlays/prod/kustomization.yaml @@ -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