nebula-stats启动失败

  • nebula 版本:
    image

  • 部署方式:分布式

  • 安装方式:RPM

  • 是否上生产环境:Y

  • 问题的具体描述
    exporter启动后,抓取数据即失败退出,无法抓取监控数据

I0706 11:33:17.694871    7514 main.go:121] Providing metrics at :19201/metrics





I0706 11:33:30.156053    7514 exporter.go:91] Start collect
I0706 11:33:30.156073    7514 exporter.go:157] Collect nebula_xxj_ebg:METAD metad0:19559 Metrics 
I0706 11:33:30.156084    7514 exporter.go:157] Collect nebula_xxj_ebg:METAD metad1:19559 Metrics 
I0706 11:33:30.156095    7514 exporter.go:157] Collect nebula_xxj_ebg:METAD metad2:19559 Metrics 
I0706 11:33:30.156125    7514 exporter.go:157] Collect nebula_xxj_ebg:GRAPHD graphd0:19669 Metrics 
I0706 11:33:30.156132    7514 exporter.go:157] Collect nebula_xxj_ebg:GRAPHD graphd1:19669 Metrics 
I0706 11:33:30.156139    7514 exporter.go:157] Collect nebula_xxj_ebg:GRAPHD graphd2:19669 Metrics 
I0706 11:33:30.156148    7514 exporter.go:157] Collect nebula_xxj_ebg:STORAGED storaged0:19779 Metrics 
I0706 11:33:30.156154    7514 exporter.go:157] Collect nebula_xxj_ebg:STORAGED storaged1:19779 Metrics 
I0706 11:33:30.156160    7514 exporter.go:157] Collect nebula_xxj_ebg:STORAGED storaged2:19779 Metrics 
panic: label value "\x10\x00\x00\x00\x00\x00\x00\x00\xe0\x8aA\x9c\xe4\u007f\x00\x00" is not valid UTF-8

goroutine 127 [running]:
github.com/prometheus/client_golang/prometheus.MustNewConstMetric(...)
	/root/linguo2/pkg/mod/github.com/prometheus/client_golang@v1.9.0/prometheus/value.go:107
github.com/vesoft-inc/nebula-stats-exporter/exporter.(*NebulaExporter).CollectMetrics(0x0, {0xc000042448, 0x7}, {0xc000042560, 0x0}, {0x136bc7e, 0xe}, {0xc000042100, 0xe}, {0xc000750000, ...}, ...)
	/root/haowu36/nebula/nebula-stats-exporter/exporter/exporter.go:135 +0x7f6
github.com/vesoft-inc/nebula-stats-exporter/exporter.(*NebulaExporter).collect.func2()
	/root/haowu36/nebula/nebula-stats-exporter/exporter/exporter.go:182 +0x25a
created by github.com/vesoft-inc/nebula-stats-exporter/exporter.(*NebulaExporter).collect
	/root/haowu36/nebula/nebula-stats-exporter/exporter/exporter.go:175 +0x591

您好,可以看下您的exporter config的配置吗,看起来是exporter label的格式有些问题

exporter的config.yaml如下:

[root@tuijian-db05 nebula_exporter]# more config.yaml
clusters:
  - name: nebula_xxj_ebg
    instances:
      - name: metad0
        endpointIP: 192.168.130.65
        endpointPort: 19559
        componentType: metad
      - name: metad1
        endpointIP: 192.168.130.66
        endpointPort: 19559
        componentType: metad
      - name: metad2
        endpointIP: 192.168.130.67
        endpointPort: 19559
        componentType: metad
      - name: graphd0
        endpointIP: 192.168.130.65
        endpointPort: 19669
        componentType: graphd
      - name: graphd1
        endpointIP: 192.168.130.66
        endpointPort: 19669
        componentType: graphd
      - name: graphd2
        endpointIP: 192.168.130.67
        endpointPort: 19669
        componentType: graphd
      - name: storaged0
        endpointIP: 192.168.130.65
        endpointPort: 19779
        componentType: storaged
      - name: storaged1
        endpointIP: 192.168.130.66
        endpointPort: 19779
        componentType: storaged
      - name: storaged2
        endpointIP: 192.168.130.67
        endpointPort: 19779
        componentType: storaged
[root@tuijian-db05 nebula_exporter]# 

您好,我用最新版的exporter测试了下没问题,可以升级到最新版试试,https://github.com/vesoft-inc/nebula-stats-exporter/releases/tag/v3.3.0

此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。