Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't get /probe metrics from iperf3 #21

Open
Benedict-CS opened this issue May 12, 2024 · 2 comments
Open

can't get /probe metrics from iperf3 #21

Benedict-CS opened this issue May 12, 2024 · 2 comments

Comments

@Benedict-CS
Copy link

Benedict-CS commented May 12, 2024

Browser message:

# HELP iperf3_success Was the last iperf3 probe successful.
# TYPE iperf3_success gauge
iperf3_success 0

image

Log of container:

ben@k8s-worker:~/Desktop/test$ sudo docker logs 198b3035030f
time="2024-05-11T13:28:03Z" level=info msg="Starting iperf3 exporter(version=0.1.3, branch=v0.1.3, revision=3ec09efe6175e6a8eab46e5c762288a922a29f5c)" source="iperf3_exporter.go:218"
time="2024-05-11T13:28:03Z" level=info msg="Build context(go=go1.13.8, user=\"ecastro\", date=\"2020-02-25T18:49:55Z\")" source="iperf3_exporter.go:219"
time="2024-05-11T13:28:03Z" level=info msg="Listening on :9579" source="iperf3_exporter.go:248"
time="2024-05-11T14:39:56Z" level=error msg="Failed to run iperf3: signal: killed" source="iperf3_exporter.go:117"
time="2024-05-11T14:43:47Z" level=error msg="Failed to run iperf3: signal: killed" source="iperf3_exporter.go:117"
time="2024-05-12T07:31:42Z" level=error msg="Failed to run iperf3: exit status 1" source="iperf3_exporter.go:117"
time="2024-05-12T07:31:45Z" level=error msg="Failed to run iperf3: exit status 1" source="iperf3_exporter.go:117"

image

Error message of container:

ben@k8s-worker:~/Desktop/test$ sudo docker exec -it 198b3035030f sh
/ # iperf3_exporter --log.level=debug 
INFO[0000] Starting iperf3 exporter(version=0.1.3, branch=v0.1.3, revision=3ec09efe6175e6a8eab46e5c762288a922a29f5c)  source="iperf3_exporter.go:218"
INFO[0000] Build context(go=go1.13.8, user="ecastro", date="2020-02-25T18:49:55Z")  source="iperf3_exporter.go:219"
INFO[0000] Listening on :9579                            source="iperf3_exporter.go:248"
FATA[0000] listen tcp :9579: bind: address already in use  source="iperf3_exporter.go:249"
/ # 

image

@Technikte
Copy link

@Benedict-CS Look at your log...it seems like your port mapping is already in use with some other container or so.

FATA[0000] listen tcp :9579: bind: address already in use source="iperf3_exporter.go:249"

@Benedict-CS
Copy link
Author

@Technikte This is weird because the only service that listens on port 9579 is the iperf3_exporter.

ben@ben-VirtualBox:~/Desktop$ sudo docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
ben@ben-VirtualBox:~/Desktop$ sudo netstat -tulnp | grep 9579
ben@ben-VirtualBox:~/Desktop$ sudo docker run --rm -d -p 9579:9579 --name iperf3_exporter edgard/iperf3-exporter:latest
9d27701a70eac7fa393bd8009af72cf803c1196cce1232f087610bdf45364c1b
ben@ben-VirtualBox:~/Desktop$ sudo docker ps
CONTAINER ID   IMAGE                           COMMAND                  CREATED         STATUS         PORTS                                       NAMES
9d27701a70ea   edgard/iperf3-exporter:latest   "/bin/iperf3_exporter"   9 seconds ago   Up 9 seconds   0.0.0.0:9579->9579/tcp, :::9579->9579/tcp   iperf3_exporter
ben@ben-VirtualBox:~/Desktop$ sudo netstat -tulnp | grep 9579
tcp        0      0 0.0.0.0:9579            0.0.0.0:*               LISTEN      34900/docker-proxy  
tcp6       0      0 :::9579                 :::*                    LISTEN      34906/docker-proxy  
ben@ben-VirtualBox:~/Desktop$ sudo docker exec -it 9d27701a70ea sh
/ # iperf3_exporter --log.level=debug
INFO[0000] Starting iperf3 exporter(version=0.1.3, branch=v0.1.3, revision=3ec09efe6175e6a8eab46e5c762288a922a29f5c)  source="iperf3_exporter.go:218"
INFO[0000] Build context(go=go1.13.8, user="ecastro", date="2020-02-25T18:49:55Z")  source="iperf3_exporter.go:219"
INFO[0000] Listening on :9579                            source="iperf3_exporter.go:248"
FATA[0000] listen tcp :9579: bind: address already in use  source="iperf3_exporter.go:249"
/ # 

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants