promethues grafana 模板获取不到监控指标,nebula 版本1.2,请问大佬们是啥原因呀。。。。
是所有指标获取不到,还是个别
就是这个样子:
然后exporter检测到的数据:
# HELP nebula_graphd_count
# TYPE nebula_graphd_count gauge
nebula_graphd_count{instanceName="graphd0",instanceType="graphd",namespace="nebula"} 1
nebula_graphd_count{instanceName="graphd1",instanceType="graphd",namespace="nebula"} 1
nebula_graphd_count{instanceName="graphd2",instanceType="graphd",namespace="nebula"} 1
# HELP nebula_metad_count
# TYPE nebula_metad_count gauge
nebula_metad_count{instanceName="metad0",instanceType="metad",namespace="nebula"} 1
nebula_metad_count{instanceName="metad1",instanceType="metad",namespace="nebula"} 1
nebula_metad_count{instanceName="metad2",instanceType="metad",namespace="nebula"} 1
# HELP nebula_metad_heartbeat_error_qps_avg_3600
# TYPE nebula_metad_heartbeat_error_qps_avg_3600 gauge
nebula_metad_heartbeat_error_qps_avg_3600{instanceName="metad0",instanceType="metad",namespace="nebula"} 0
nebula_metad_heartbeat_error_qps_avg_3600{instanceName="metad1",instanceType="metad",namespace="nebula"} 0
nebula_metad_heartbeat_error_qps_avg_3600{instanceName="metad2",instanceType="metad",namespace="nebula"} 0
# HELP nebula_metad_heartbeat_error_qps_avg_5
# TYPE nebula_metad_heartbeat_error_qps_avg_5 gauge
nebula_metad_heartbeat_error_qps_avg_5{instanceName="metad0",instanceType="metad",namespace="nebula"} 0
nebula_metad_heartbeat_error_qps_avg_5{instanceName="metad1",instanceType="metad",namespace="nebula"} 0
nebula_metad_heartbeat_error_qps_avg_5{instanceName="metad2",instanceType="metad",namespace="nebula"} 0
# HELP nebula_metad_heartbeat_error_qps_avg_60
# TYPE nebula_metad_heartbeat_error_qps_avg_60 gauge
nebula_metad_heartbeat_error_qps_avg_60{instanceName="metad0",instanceType="metad",namespace="nebula"} 0
nebula_metad_heartbeat_error_qps_avg_60{instanceName="metad1",instanceType="metad",namespace="nebula"} 0
nebula_metad_heartbeat_error_qps_avg_60{instanceName="metad2",instanceType="metad",namespace="nebula"} 0
# HELP nebula_metad_heartbeat_error_qps_avg_600
# TYPE nebula_metad_heartbeat_error_qps_avg_600 gauge
nebula_metad_heartbeat_error_qps_avg_600{instanceName="metad0",instanceType="metad",namespace="nebula"} 0
nebula_metad_heartbeat_error_qps_avg_600{instanceName="metad1",instanceType="metad",namespace="nebula"} 0
nebula_metad_heartbeat_error_qps_avg_600{instanceName="metad2",instanceType="metad",namespace="nebula"} 0
# HELP nebula_metad_heartbeat_error_qps_count_3600
# TYPE nebula_metad_heartbeat_error_qps_count_3600 gauge
nebula_metad_heartbeat_error_qps_count_3600{instanceName="metad0",instanceType="metad",namespace="nebula"} 0
nebula_metad_heartbeat_error_qps_count_3600{instanceName="metad1",instanceType="metad",namespace="nebula"} 0
nebula_metad_heartbeat_error_qps_count_3600{instanceName="metad2",instanceType="metad",namespace="nebula"} 0
# HELP nebula_metad_heartbeat_error_qps_count_5
# TYPE nebula_metad_heartbeat_error_qps_count_5 gauge
nebula_metad_heartbeat_error_qps_count_5{instanceName="metad0",instanceType="metad",namespace="nebula"} 0
nebula_metad_heartbeat_error_qps_count_5{instanceName="metad1",instanceType="metad",namespace="nebula"} 0
nebula_metad_heartbeat_error_qps_count_5{instanceName="metad2",instanceType="metad",namespace="nebula"} 0
# HELP nebula_metad_heartbeat_error_qps_count_60
# TYPE nebula_metad_heartbeat_error_qps_count_60 gauge
nebula_metad_heartbeat_error_qps_count_60{instanceName="metad0",instanceType="metad",namespace="nebula"} 0
nebula_metad_heartbeat_error_qps_count_60{instanceName="metad1",instanceType="metad",namespace="nebula"} 0
nebula_metad_heartbeat_error_qps_count_60{instanceName="metad2",instanceType="metad",namespace="nebula"} 0
# HELP nebula_metad_heartbeat_error_qps_count_600
# TYPE nebula_metad_heartbeat_error_qps_count_600 gauge
nebula_metad_heartbeat_error_qps_count_600{instanceName="metad0",instanceType="metad",namespace="nebula"} 0
nebula_metad_heartbeat_error_qps_count_600{instanceName="metad1",instanceType="metad",namespace="nebula"} 0
nebula_metad_heartbeat_error_qps_count_600{instanceName="metad2",instanceType="metad",namespace="nebula"} 0
...
多数为0,尝试过导入,没有增量
麻烦你curl一下这个地址http://{graphdIp}:{endpointPort}/get_stats?stats,确认是否有数据,然后再查看下nebula-stats-exporter日志采集是否正常,把graphdIp跟endpointPort替换为你环境的真实配置