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)