Nebula对接prometheus的问题

最近想要给nebula增加对接 prometheus。
发现nebula需要部署nebula-stats-exporter才能和prometheus对接。
请问nebula-stats-exporter 是一定要docker运行吗?
我编译后的nebula-stats-exporter 执行的时候,出现
build config failed: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined
错误

你好,请把编译后,nebula-stats-exporter 的启动命令和你的配置文件贴一下

我遇见过相同的问题,非docker运行需要加一个参数:–bare-metal。完整的命令是 nebula-stats-exporter --bare-metal --bare-metal-config=config.yaml