浏览器连接dashboard,提示『Failed:dial tcp:0: connect: can’t assign requested address』,具体错误如下:
版本信息:
- nebula graph:v2.0.1
场景:
1、 搭建dashboard,nebula三大进程部署在服务器,(正常运行)
2、node-exporter、nebula-stats-exporter部署在服务器(正常运行,浏览器可通过9100、9200端口访问)
3、prometheus、nebula-http-gateway、nebula-graph-dashboard运行在本地(MacOS)
相关配置:
- prometheus
# my global config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).
scrape_configs:
- job_name: 'nebula-exporter'
static_configs:
- targets: [
'nebula-stats-exporter服务的IP地址:9200', # nebula-stats-exporter服务的IP地址和端口。
]
- job_name: 'node-exporter'
static_configs:
- targets: [
'node-exporter服务的IP地址:9100' # node-exporter服务的IP地址和端口。
]
浏览器可正常访问prometheus,如下
- nebula-http-gateway访问页面如下: