Add air quality external monitor
This commit is contained in:
parent
555eec195a
commit
7303e12d5a
|
@ -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
|
|
@ -0,0 +1,4 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./air-quality.yaml
|
|
@ -8,4 +8,5 @@ resources:
|
|||
- ./alertmanager-gotify-bridge
|
||||
- ./victoria-metrics
|
||||
- ./varken
|
||||
- ./proxmoxve-exporter
|
||||
- ./proxmoxve-exporter
|
||||
- ./external-monitors
|
Loading…
Reference in New Issue