diff --git a/cluster/apps/monitoring/kustomization.yaml b/cluster/apps/monitoring/kustomization.yaml index e92db07..a987d52 100644 --- a/cluster/apps/monitoring/kustomization.yaml +++ b/cluster/apps/monitoring/kustomization.yaml @@ -7,4 +7,5 @@ resources: - ./zfs-exporter - ./alertmanager-gotify-bridge - ./victoria-metrics -- ./varken \ No newline at end of file +- ./varken +- ./proxmoxve-exporter \ No newline at end of file diff --git a/cluster/apps/monitoring/proxmoxve-exporter/helm-release.yaml b/cluster/apps/monitoring/proxmoxve-exporter/helm-release.yaml new file mode 100644 index 0000000..ae28cd5 --- /dev/null +++ b/cluster/apps/monitoring/proxmoxve-exporter/helm-release.yaml @@ -0,0 +1,52 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: proxmoxve-exporter + namespace: monitoring +spec: + interval: 5m + chart: + spec: + chart: app-template + version: 1.3.x + sourceRef: + kind: HelmRepository + name: bjws-charts + namespace: flux-system + + values: + image: + repository: prompve/prometheus-pve-exporter + tag: latest + + args: + - /config/pve.yml + - --no-collector.config + + hostNetwork: true + + env: + PVE_VERIFY_SSL: false + + service: + main: + labels: + app: proxmoxve-service + + ports: + http: + port: 9221 + + probes: + liveness: + enabled: false + + serviceMonitor: + main: + enabled: false + + persistence: + config: + enabled: true + type: configMap + name: proxmoxve-configmap \ No newline at end of file diff --git a/cluster/apps/monitoring/proxmoxve-exporter/kustomization.yaml b/cluster/apps/monitoring/proxmoxve-exporter/kustomization.yaml new file mode 100644 index 0000000..3c0e1ad --- /dev/null +++ b/cluster/apps/monitoring/proxmoxve-exporter/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- ./proxmoxve-config.sops.yaml +- ./helm-release.yaml +- ./service-monitor.yaml \ No newline at end of file diff --git a/cluster/apps/monitoring/proxmoxve-exporter/proxmoxve-config.sops.yaml b/cluster/apps/monitoring/proxmoxve-exporter/proxmoxve-config.sops.yaml new file mode 100644 index 0000000..35d3636 --- /dev/null +++ b/cluster/apps/monitoring/proxmoxve-exporter/proxmoxve-config.sops.yaml @@ -0,0 +1,60 @@ +kind: ConfigMap +apiVersion: v1 +metadata: + name: proxmoxve-configmap + namespace: monitoring +data: + pve.yml: ENC[AES256_GCM,data:PY8XgG3hEMUhiNITlI6Pqrv5G6GVtaPNMYeUIKGB0hlCQ5jhmacphnkqF96/SfNrBoV/kLuz1eUkdXIP5XJnx8YWlmFqF2eFXEaquA==,iv:tX2CWGVEml7iAznPhcI+rqEmXKLiqpX/2mkJLYl8kkY=,tag:QOgML5BxSxLSCMZzY+Bqeg==,type:str] +sops: + kms: [] + gcp_kms: [] + azure_kv: [] + hc_vault: [] + age: [] + lastmodified: "2023-05-11T04:46:10Z" + mac: ENC[AES256_GCM,data:6I7XpKm7WACgad7DVGL+AaS36lRrw71D/BwmWlKGpVVUDT1QqNdHrxggkMa3FDBC7B1Um27oXQplb1+Lp707oqJhLaty3W8uthCMVeru71pCKqjNVDMHk0740Ve03ttA7h/KjINu3u5P6UazXZG3KYYzKbfoq1L2iOmNuhGZdNQ=,iv:GlXClOr+gM9fGallS9W7q+nBI9WiMxSKtQm9vvVYA4I=,tag:9EZ6utMzzPZ4s+Zc64+85g==,type:str] + pgp: + - created_at: "2023-05-11T01:21:27Z" + enc: | + -----BEGIN PGP MESSAGE----- + + hQIMAzKleRwoSoixARAAoBot9sYCQfyslk3+HE7h/2d0AN7d+IyUKdoE3yf+5lEu + sGb2kCUxFayJsj/iCLAszpMryh17B+fgxmZ1cJdwTJ235y7i59aoDxtPIotIj2cc + 2CWPW0oQaPt1irrtRkjHWungq+DVlL0zs0vWIRxsOUWmOMiE+cukd1bsl4CEaZ9o + 1RETR7OxDEtAZX5Lp436eXuOFvvCuBRYUcvAJJhQdMviy6wizwhsXg2p9Gfz6rlF + uiu95DbfbkH9Pl6uop5/MVbeNy50Fv4FsKeEct7Xz4/Aarthm7TUMENU4Lmum86U + 2/Avmn1s+1KmID+LrcgTMzjS9J6kCaUmAup+0K9F/DJyYl35GMJslyjkNwEcTjGE + VY2VIIVPKDdsFs8FO7CNedOugR/3c1tvR0BY0ivG14rw9MSfOh4+cupolL9Cp5Ek + /C/1vMS3SvE/n3POOlBY/vejgb+AT4Dk99Ul/YHjvxdHJeCTW/9r9JGdydqv0XTC + rfhxHmRKTTVvupy7oC7X55Bur9cGzStqxf09tnu+evJZotCS40duYNeqeDv1vqfO + seZT7onMfQWmWACQILtTayKxL/iEcVXoQFNKIPJOgauBqs2my7ufaNiNtZFJSYKT + owPjVCcgYD5iEbZF7PKiikjgfR+1Br6MYMQlfIoh23CP4JsXia2C6n8WHAQrmmTU + aAEJAhC2f6LSTJDa8S/e9dGI1PV30OKL+T86M83CQOIMZvZBf/223GYdu23bZXym + NYFmrKd7c/KOwIGr5Zi9skh80PJNtRRj96c+kkLiWFW4Pec9Ph/0mMjZ2yq2ZjZM + vCnqul8rLbg5 + =TpIG + -----END PGP MESSAGE----- + fp: 2CC2B3631D5C3393901335DB68F95C5D753EE1E5 + - created_at: "2023-05-11T01:21:27Z" + enc: | + -----BEGIN PGP MESSAGE----- + + hQIMA4WLYkVpP8xtAQ//Xq+rDXSrf/WTaVMO0kRv5x0OBnRF1UVG2Cf+GmjIEPmc + C22Y/DzW1PPt3SuuWt9Axp1am/NBzndmK8FvO5bdYWBtI1QICs/4sgVcOkPZy+tD + T9VyaLwIBzo597fuyFNqMqtsqBvB6Dwu20aItaJOq6OEYTp8EGjly7D1pZUgndJT + 0L3qmtTrh7pMSO9eOSCv0LFA/SJjTOHgXuooI/64SLdiYOpR5k8xQ8fth/DKdHnK + tPtIKl6Of6H2w6zVmD7LA7acIwo5LuiUYAf8FB+/fkfCC/mRV33y4VOZ+rfHRvom + D7Hav9PpS2XcaDq2HCfBthAbhYubIF0bHzVpJ6xDF6BAh3/3IsOFNA443dEX3NNP + vZxTcSIWUiYV6pTCW8+V34acPWG0uQteP7LNQJVeHblrcFU7uGFW1YC9IcovEEFH + tb+pGzGgR7zeWNZtSaktQHSeoE6jEF0xGyao7xVlfEQAKBp9km7eGFo3QTUK3MWl + TBOAU75s9y7/Nw8NJSBmqkowA1t0Tp2SyNJrLqjk9BuEz0+mJlQRY1dCdDnJLpl/ + sCfir4XAmBWUV/ZQ3GtwfY3PZq6QzjcSVKT5DOqI9dnztwD35wTChoe3EJkhSlqH + FKRev2a2psH8Ys2AgQ+lstTrRScN5aa80Ztm4yVSJ2pDHUDDWhT/vnypcqjf9SvU + aAEJAhDx3FyoEKT0lkHZ/owKlKNLnhyZvmbIeGlaEJ3l5d1JnCUU+pAhkuf2qI5O + 1g7rXIoRCSep93DGtf2ihfBb+CXHB0Xxp45EgGXiwhG1rJpYC69ZlYLTs784IE8l + T7Y3Gbirr+zO + =Rx+F + -----END PGP MESSAGE----- + fp: 8DF31C9F48A24F525FFB1815FC96C52B59328E95 + encrypted_regex: ^(data|stringData)$ + version: 3.7.3 diff --git a/cluster/apps/monitoring/proxmoxve-exporter/service-monitor.yaml b/cluster/apps/monitoring/proxmoxve-exporter/service-monitor.yaml new file mode 100644 index 0000000..e1805ae --- /dev/null +++ b/cluster/apps/monitoring/proxmoxve-exporter/service-monitor.yaml @@ -0,0 +1,21 @@ +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: proxmoxve-exporter + namespace: monitoring + labels: + release: kube-prometheus-stack +spec: + selector: + matchLabels: + app: proxmoxve-service + endpoints: + - port: http + interval: 3m + scrapeTimeout: 1m + path: /pve + params: + target: + - "192.168.87.28" + module: + - default \ No newline at end of file diff --git a/docs/todo.md b/docs/todo.md index 5f9dda7..6f4ff72 100644 --- a/docs/todo.md +++ b/docs/todo.md @@ -17,7 +17,7 @@ TODO: - [x] gotify - [ ] Services to monitor - [ ] Authentik - - [ ] + - [x] *arr - [x] IRC - [ ] Harbor - [x] CDN (nginx filelist)