how to use blackbox_exporter module[connect_tcp] test ipv6+port

27 views
Skip to first unread message

老周

unread,
Aug 23, 2020, 9:12:59 PM8/23/20
to Prometheus Users
I want to test ipv6addres+port like
2404:6800:4005:805::200e port 1234 

prometheus.yml config:
metrics_path: /probe 
params: 
    module: [tcp_connect] 
static_configs: 
    - targets: ['2404:6800:4005:805::200e:1234']  

the  <probe_success> is false and  <probe_duration_seconds> no time delay,so grafana no result  
but config module ICMP is ok
blackbox.yml is default 

help me~~

老周

unread,
Aug 23, 2020, 10:57:09 PM8/23/20
to Prometheus Users
I solved it myself

targets: ['2404:6800:4005:805::200e:1234']    is  error

It has to be written like this   
targets: ["[2404:6800:4005:805::200e]:1234"]   

Reply all
Reply to author
Forward
0 new messages