2024-10-29 13:22:30 +01:00
|
|
|
---
|
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: ServiceMonitor
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: fail2ban-prometheus-exporter
|
|
|
|
app.kubernetes.io/instance: fail2ban-prometheus
|
|
|
|
app.kubernetes.io/name: fail2ban-prometheus-exporter
|
|
|
|
name: fail2ban-prometheus-servicemonitor
|
|
|
|
namespace: fail2ban-prometheus
|
|
|
|
spec:
|
|
|
|
attachMetadata:
|
|
|
|
node: false
|
|
|
|
endpoints:
|
|
|
|
- interval: 30s
|
|
|
|
path: /metrics
|
|
|
|
port: http-metrics
|
|
|
|
relabelings:
|
|
|
|
- action: replace
|
|
|
|
sourceLabels:
|
|
|
|
- __meta_kubernetes_endpoint_node_name
|
|
|
|
targetLabel: node
|
|
|
|
scheme: http
|
|
|
|
jobLabel: jobLabel
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/instance: fail2ban-prometheus
|
|
|
|
app.kubernetes.io/name: fail2ban-prometheus-exporter
|
2024-11-28 12:07:47 +01:00
|
|
|
---
|
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: ServiceMonitor
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: fail2ban-geoip
|
|
|
|
app.kubernetes.io/instance: fail2ban-prometheus
|
|
|
|
app.kubernetes.io/name: fail2ban-geoip
|
|
|
|
name: fail2ban-geoip-servicemonitor
|
|
|
|
namespace: fail2ban-prometheus
|
|
|
|
spec:
|
|
|
|
attachMetadata:
|
|
|
|
node: false
|
|
|
|
endpoints:
|
|
|
|
- interval: 10s
|
|
|
|
path: /metrics
|
|
|
|
port: http-metrics
|
|
|
|
relabelings:
|
|
|
|
- action: replace
|
|
|
|
sourceLabels:
|
|
|
|
- __meta_kubernetes_endpoint_node_name
|
|
|
|
targetLabel: node
|
|
|
|
scheme: http
|
|
|
|
jobLabel: jobLabel
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/instance: fail2ban-prometheus
|
|
|
|
app.kubernetes.io/name: fail2ban-geoip
|