1
0
Fork 0

add helium-blockchain-exporter

This commit is contained in:
Massaki Archambault 2021-09-26 17:00:29 -04:00
parent e4a93204c9
commit ee82696ffe
9 changed files with 83 additions and 5 deletions

View File

@ -1,2 +1,2 @@
resources:
- blackbox-exporter-deployment.yaml
- blackbox-exporter-deployment.yaml

View File

@ -0,0 +1,49 @@
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
env:
- name: ACCOUNTS
valueFrom:
configMapKeyRef:
name: blackbox-exporter-config
key: ACCOUNTS
args:
- -accounts
- $(ACCOUNTS)
resources:
requests:
memory: 128Mi
cpu: 100m
limits:
memory: 128Mi
cpu: 500m
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

@ -0,0 +1,13 @@
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

View File

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

View File

@ -2,6 +2,7 @@ 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

View File

@ -3,7 +3,7 @@ bases:
- ../../namespaces/operators
# allow "kubectl apply -l managed-by=cluster --prune ..."
commonlabels:
commonLabels:
managed-by: kustomize-cluster
transformers:

View File

@ -53,7 +53,7 @@ secretGenerator:
- password=nextcloud
# allow "kubectl apply -l managed-by=kustomize --prune ..."
commonlabels:
commonLabels:
managed-by: kustomize
transformers:

View File

@ -4,7 +4,7 @@ bases:
- ../../bases/longhorn
# allow "kubectl apply -l managed-by=cluster --prune ..."
commonlabels:
commonLabels:
managed-by: kustomize-cluster
transformers:

View File

@ -30,6 +30,12 @@ images:
- name: redis
newTag: 6.2.5
configMapGenerator:
- name: blackbox-exporter-config
behavior: replace
literals:
- ACCOUNTS=13ntuT3ZC5A1RKEUciXh7qxvQvZ38azqBPHSdUGTpun8evVVTVy
secretGenerator:
- name: drone-secret
type: Opaque
@ -62,7 +68,7 @@ secretGenerator:
- password=${ssm:/k3s/prod/nextcloud/redis/password}
# allow "kubectl apply -l managed-by=kustomize --prune ..."
commonlabels:
commonLabels:
managed-by: kustomize
transformers: