37 lines
801 B
YAML
37 lines
801 B
YAML
# apiVersion: monitoring.coreos.com/v1
|
|
# kind: ServiceMonitor
|
|
# metadata:
|
|
# name: haproxy
|
|
# labels:
|
|
# app: haproxy
|
|
# release: monitoring
|
|
# spec:
|
|
# selector:
|
|
# matchLabels:
|
|
# app.kubernetes.io/instance: haproxy-ingress
|
|
# app.kubernetes.io/name: haproxy-ingress
|
|
# namespaceSelector:
|
|
# matchNames:
|
|
# - ingress-controller
|
|
# endpoints:
|
|
# - port: exporter
|
|
# path: /metrics
|
|
# interval: 30s
|
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: PodMonitor
|
|
metadata:
|
|
name: haproxy
|
|
labels:
|
|
app: haproxy
|
|
release: monitoring
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/instance: haproxy-ingress
|
|
app.kubernetes.io/name: haproxy-ingress
|
|
namespaceSelector:
|
|
matchNames:
|
|
- ingress-controller
|
|
podMetricsEndpoints:
|
|
- port: exporter |