apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
k8s-app: prometheus-blackbox-exporter
name: prometheus-blackbox-exporter
namespace: monitoring
spec:
endpoints:
- interval: 60s
port: http-metrics
- interval: 60s
params:
module:
- health
targets:
- https://google.com
- https://github.io
path: "/probe"
targetPort: 9115
relabelings:
- sourceLabels:
- __param_target
targetLabel: target
- sourceLabels:
- __param_module
targetLabel: module
namespaceSelector:
matchNames:
- monitoring
selector:
app: prometheus-blackbox-exporterapiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
k8s-app: prometheus-blackbox-exporter
name: prometheus-blackbox-exporter
namespace: monitoring
spec:
endpoints:
- interval: 60s
path: "/probe"
targetPort: 9115
relabelings:
- sourceLabels:
- __param_target
targetLabel: target
- sourceLabels:
- __param_module
targetLabel: module
- interval: 60s
params:
module:
- health
targets:
- https://github.io
path: "/probe"
targetPort: 9115
relabelings:
- sourceLabels:
- __param_target
targetLabel: target
- sourceLabels:
- __param_module
targetLabel: module
namespaceSelector:
matchNames:
- monitoring
selector:
app: prometheus-blackbox-exporter