From cf4b458a4b9d0093ed998f1a6175b0d13fa7f0ee Mon Sep 17 00:00:00 2001 From: mountain Date: Sun, 26 Nov 2023 18:02:02 +0900 Subject: [PATCH] =?UTF-8?q?metric=20namespace=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/client.go | 2 +- client/operation.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client.go b/client/client.go index f5a104f..bc32fa1 100644 --- a/client/client.go +++ b/client/client.go @@ -34,7 +34,7 @@ type clientConfig struct { GrpcAddress string `json:"grpc_server_address"` HttpAddress string `json:"http_server_address"` StorageRoot string `json:"storage_path"` - RunNodeExporter bool `json:"run_node_exporter"` + MetricNamespace string `json:"metric_namespace"` } func loadClientConfig() (clientConfig, error) { diff --git a/client/operation.go b/client/operation.go index 5d2452e..afe9c97 100644 --- a/client/operation.go +++ b/client/operation.go @@ -275,7 +275,7 @@ func (hc *houstonClient) launch(meta *procmeta) error { if _, registered := metricValues[metric.Key]; !registered { exporter := newExporterForPrometheus() - accessor := exporter.registMetric(childProcName, metric) + accessor := exporter.registMetric(hc.config.MetricNamespace, metric) prometheus.Register(exporter)