Compare commits
3 Commits
auto-updat
...
auto-updat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d2ceb50ef | ||
|
|
fb651bc6fe | ||
|
|
04330aa474 |
@@ -31,11 +31,9 @@ spec:
|
|||||||
- /bin/bash
|
- /bin/bash
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
# Clean node name for service name
|
|
||||||
NODE_CLEAN=$(echo "$NODE_NAME" | cut -d'.' -f1 | tr '[:upper:]' '[:lower:]' | tr '_' '-')
|
NODE_CLEAN=$(echo "$NODE_NAME" | cut -d'.' -f1 | tr '[:upper:]' '[:lower:]' | tr '_' '-')
|
||||||
SERVICE_NAME="iperf3-exporter-${NODE_CLEAN}"
|
SERVICE_NAME="iperf3-exporter-${NODE_CLEAN}"
|
||||||
|
|
||||||
# Create service for this exporter pod
|
|
||||||
kubectl apply -f - <<EOF
|
kubectl apply -f - <<EOF
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|||||||
@@ -16,28 +16,105 @@ spec:
|
|||||||
interval: 5m
|
interval: 5m
|
||||||
scrapeTimeout: 30s
|
scrapeTimeout: 30s
|
||||||
params:
|
params:
|
||||||
target:
|
target: ['iperf3-ch.iperf3.svc.cluster.local:5201']
|
||||||
- "iperf3-ch.iperf3.svc.cluster.local:5201"
|
period: ['10s']
|
||||||
- "iperf3-us.iperf3.svc.cluster.local:5201"
|
streams: ['4']
|
||||||
- "iperf3-iris.iperf3.svc.cluster.local:5201"
|
|
||||||
- "iperf3-home.iperf3.svc.cluster.local:5201"
|
|
||||||
- "iperf3-master.iperf3.svc.cluster.local:5201"
|
|
||||||
- "iperf3-it.iperf3.svc.cluster.local:5201"
|
|
||||||
- "iperf3-nas.iperf3.svc.cluster.local:5201"
|
|
||||||
- "iperf3-spb.iperf3.svc.cluster.local:5201"
|
|
||||||
duration:
|
|
||||||
- "10"
|
|
||||||
streams:
|
|
||||||
- "4"
|
|
||||||
relabelings:
|
relabelings:
|
||||||
- sourceLabels: [__param_target]
|
- sourceLabels: [__param_target]
|
||||||
targetLabel: instance
|
targetLabel: instance
|
||||||
|
- targetLabel: __address__
|
||||||
|
replacement: ch.tail2fe2d.ts.net
|
||||||
|
- port: metrics
|
||||||
|
path: /probe
|
||||||
|
interval: 5m
|
||||||
|
scrapeTimeout: 30s
|
||||||
|
params:
|
||||||
|
target: ['iperf3-us.iperf3.svc.cluster.local:5201']
|
||||||
|
period: ['10s']
|
||||||
|
streams: ['4']
|
||||||
|
relabelings:
|
||||||
- sourceLabels: [__param_target]
|
- sourceLabels: [__param_target]
|
||||||
targetLabel: __param_target
|
targetLabel: instance
|
||||||
|
- targetLabel: __address__
|
||||||
|
replacement: us.tail2fe2d.ts.net
|
||||||
|
- port: metrics
|
||||||
|
path: /probe
|
||||||
|
interval: 5m
|
||||||
|
scrapeTimeout: 30s
|
||||||
|
params:
|
||||||
|
target: ['iperf3-iris.iperf3.svc.cluster.local:5201']
|
||||||
|
period: ['10s']
|
||||||
|
streams: ['4']
|
||||||
|
relabelings:
|
||||||
- sourceLabels: [__param_target]
|
- sourceLabels: [__param_target]
|
||||||
targetLabel: __address__
|
targetLabel: instance
|
||||||
regex: iperf3-(.+)\.iperf3\.svc\.cluster\.local:5201
|
- targetLabel: __address__
|
||||||
replacement: iperf3-exporter-${1}.iperf3.svc.cluster.local:9579
|
replacement: iris.khv
|
||||||
|
- port: metrics
|
||||||
|
path: /probe
|
||||||
|
interval: 5m
|
||||||
|
scrapeTimeout: 30s
|
||||||
|
params:
|
||||||
|
target: ['iperf3-home.iperf3.svc.cluster.local:5201']
|
||||||
|
period: ['10s']
|
||||||
|
streams: ['4']
|
||||||
|
relabelings:
|
||||||
|
- sourceLabels: [__param_target]
|
||||||
|
targetLabel: instance
|
||||||
|
- targetLabel: __address__
|
||||||
|
replacement: home.homenet
|
||||||
|
- port: metrics
|
||||||
|
path: /probe
|
||||||
|
interval: 5m
|
||||||
|
scrapeTimeout: 30s
|
||||||
|
params:
|
||||||
|
target: ['iperf3-master.iperf3.svc.cluster.local:5201']
|
||||||
|
period: ['10s']
|
||||||
|
streams: ['4']
|
||||||
|
relabelings:
|
||||||
|
- sourceLabels: [__param_target]
|
||||||
|
targetLabel: instance
|
||||||
|
- targetLabel: __address__
|
||||||
|
replacement: de.hexor.cy
|
||||||
|
- port: metrics
|
||||||
|
path: /probe
|
||||||
|
interval: 5m
|
||||||
|
scrapeTimeout: 30s
|
||||||
|
params:
|
||||||
|
target: ['iperf3-it.iperf3.svc.cluster.local:5201']
|
||||||
|
period: ['10s']
|
||||||
|
streams: ['4']
|
||||||
|
relabelings:
|
||||||
|
- sourceLabels: [__param_target]
|
||||||
|
targetLabel: instance
|
||||||
|
- targetLabel: __address__
|
||||||
|
replacement: it.hexor.cy
|
||||||
|
- port: metrics
|
||||||
|
path: /probe
|
||||||
|
interval: 5m
|
||||||
|
scrapeTimeout: 30s
|
||||||
|
params:
|
||||||
|
target: ['iperf3-nas.iperf3.svc.cluster.local:5201']
|
||||||
|
period: ['10s']
|
||||||
|
streams: ['4']
|
||||||
|
relabelings:
|
||||||
|
- sourceLabels: [__param_target]
|
||||||
|
targetLabel: instance
|
||||||
|
- targetLabel: __address__
|
||||||
|
replacement: nas.homenet
|
||||||
|
- port: metrics
|
||||||
|
path: /probe
|
||||||
|
interval: 5m
|
||||||
|
scrapeTimeout: 30s
|
||||||
|
params:
|
||||||
|
target: ['iperf3-spb.iperf3.svc.cluster.local:5201']
|
||||||
|
period: ['10s']
|
||||||
|
streams: ['4']
|
||||||
|
relabelings:
|
||||||
|
- sourceLabels: [__param_target]
|
||||||
|
targetLabel: instance
|
||||||
|
- targetLabel: __address__
|
||||||
|
replacement: spb.tail2fe2d.ts.net
|
||||||
metricRelabelings:
|
metricRelabelings:
|
||||||
- sourceLabels: [__name__]
|
- sourceLabels: [__name__]
|
||||||
regex: iperf3_(.+)
|
regex: iperf3_(.+)
|
||||||
|
|||||||
Reference in New Issue
Block a user