From 83b83fdac1aaa4befd6d6120c1d180c63a3d8614 Mon Sep 17 00:00:00 2001 From: Kenshin <35095889+kqzh@users.noreply.github.com> Date: Tue, 15 Feb 2022 17:01:50 +0800 Subject: [PATCH] reset labels name (#42) --- exporter/exporter.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exporter/exporter.go b/exporter/exporter.go index 011a6e2..cc0b497 100644 --- a/exporter/exporter.go +++ b/exporter/exporter.go @@ -117,7 +117,8 @@ func (exporter *NebulaExporter) CollectMetrics( continue } - labels := []string{"nebula_cluster", "component_type", "instance_name"} + // TODO: uniform naming rules with _ + labels := []string{"nebula_cluster", "componentType", "instanceName"} labelValues := []string{cluster, componentType, name} if namespace != NonNamespace {