Add air quality external monitor

This commit is contained in:
SeanOMik 2023-07-23 21:50:51 -04:00
parent 555eec195a
commit 7303e12d5a
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
3 changed files with 63 additions and 1 deletions

View File

@ -0,0 +1,57 @@
kind: Service
apiVersion: v1
metadata:
name: air-quality-external
namespace: monitoring
labels:
app: air-quality-external
spec:
type: ClusterIP
ports:
- name: metrics
port: 80
targetPort: 80
---
kind: Endpoints
apiVersion: v1
metadata:
name: air-quality-external
namespace: monitoring
subsets:
- addresses:
- ip: 192.168.2.1
ports:
- name: metrics
port: 80
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: air-quality-external
namespace: monitoring
labels:
release: kube-prometheus-stack
spec:
selector:
matchLabels:
app: air-quality-external
endpoints:
- interval: 60s
port: metrics
#kind: Probe
#apiVersion: monitoring.coreos.com/v1
#metadata:
# name: air-quality-prober
# namespace: monitoring
# labels:
# release: kube-prometheus-stack
#spec:
# jobName: air-quality
# interval: 60s
# prober:
# url: 192.168.2.1:80/metrics
# targets:
# staticConfig:
# static:
# - https://www.google.com

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./air-quality.yaml

View File

@ -8,4 +8,5 @@ resources:
- ./alertmanager-gotify-bridge
- ./victoria-metrics
- ./varken
- ./proxmoxve-exporter
- ./proxmoxve-exporter
- ./external-monitors