monitoring: add platform quality push gateway for test metrics
This commit is contained in:
parent
ad1cbd6f85
commit
12b85f4597
@ -20,6 +20,9 @@ resources:
|
||||
- jetson-tegrastats-exporter.yaml
|
||||
- postmark-exporter-service.yaml
|
||||
- postmark-exporter-deployment.yaml
|
||||
- platform-quality-gateway-pvc.yaml
|
||||
- platform-quality-gateway-service.yaml
|
||||
- platform-quality-gateway-deployment.yaml
|
||||
- vault-sync-deployment.yaml
|
||||
- grafana-alerting-config.yaml
|
||||
- grafana-folders.yaml
|
||||
|
||||
66
services/monitoring/platform-quality-gateway-deployment.yaml
Normal file
66
services/monitoring/platform-quality-gateway-deployment.yaml
Normal file
@ -0,0 +1,66 @@
|
||||
# services/monitoring/platform-quality-gateway-deployment.yaml
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: platform-quality-gateway
|
||||
namespace: monitoring
|
||||
labels:
|
||||
app: platform-quality-gateway
|
||||
spec:
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: platform-quality-gateway
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: platform-quality-gateway
|
||||
spec:
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: NotIn
|
||||
values:
|
||||
- titan-22
|
||||
containers:
|
||||
- name: pushgateway
|
||||
image: prom/pushgateway:v1.11.2
|
||||
args:
|
||||
- --web.listen-address=:9091
|
||||
- --web.enable-admin-api
|
||||
- --persistence.file=/data/metrics.db
|
||||
- --persistence.interval=1m
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 9091
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /-/healthy
|
||||
port: http
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /-/ready
|
||||
port: http
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu: 20m
|
||||
memory: 64Mi
|
||||
limits:
|
||||
cpu: 250m
|
||||
memory: 256Mi
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: platform-quality-gateway-data
|
||||
|
||||
13
services/monitoring/platform-quality-gateway-pvc.yaml
Normal file
13
services/monitoring/platform-quality-gateway-pvc.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
# services/monitoring/platform-quality-gateway-pvc.yaml
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: platform-quality-gateway-data
|
||||
namespace: monitoring
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
|
||||
21
services/monitoring/platform-quality-gateway-service.yaml
Normal file
21
services/monitoring/platform-quality-gateway-service.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
# services/monitoring/platform-quality-gateway-service.yaml
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: platform-quality-gateway
|
||||
namespace: monitoring
|
||||
labels:
|
||||
app: platform-quality-gateway
|
||||
annotations:
|
||||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "9091"
|
||||
prometheus.io/path: "/metrics"
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: platform-quality-gateway
|
||||
ports:
|
||||
- name: http
|
||||
port: 9091
|
||||
targetPort: http
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user