Grafana获取不到prometheus的数据

我在虚拟机centeros7上搭建了Grafana+prometheus环境,导入了8919的模板(https://grafana.com/grafana/dashboards/8919),然后在本机win10上访问Grafana,但是Grafana获取不到prometheus的数据,提示no data,e.replace is not a function,单独的Grafana和prometheus网址都正常,时间也对的,prometheus.yml也用工具校验过了,实在不知道是哪个地方配置错了,

img

win10单独访问prometheus正常

img

img

node-exporter也能访问

img

添加的prometheus datasource

img

img

img

prometheus.serves文件路径和内容

img

prometheus.yml文件路径和内容

img

启动prometheus

img

找到原因 了是prometheus.yml中targets的端口号忘记改了,改成node_exporter的9100端口就好了,我以前一直用的Prometheus的9090端口