diff --git a/tensorflow/core/distributed_runtime/worker_session.cc b/tensorflow/core/distributed_runtime/worker_session.cc index db01edb29d3..f9d287e6c73 100644 --- a/tensorflow/core/distributed_runtime/worker_session.cc +++ b/tensorflow/core/distributed_runtime/worker_session.cc @@ -21,8 +21,9 @@ namespace tensorflow { namespace { -auto* session_created = monitoring::Gauge::New( - "/tensorflow/core/session_created", "True if a session was created."); +auto* worker_session_created = + monitoring::Gauge::New("/tensorflow/core/worker_session_created", + "True if a worker session was created."); // A private cache that wraps worker_cache and allows reuse of // WorkerInterface objects. @@ -117,7 +118,7 @@ WorkerSession::WorkerSession(const string& session_name, // Starts exporting metrics through a platform-specific monitoring API (if // provided). For builds using "tensorflow/core/platform/default", this is // currently a no-op. - session_created->GetCell()->Set(true); + worker_session_created->GetCell()->Set(true); monitoring::StartExporter(); } @@ -150,7 +151,7 @@ WorkerSession::WorkerSession(const string& session_name, // Starts exporting metrics through a platform-specific monitoring API (if // provided). For builds using "tensorflow/core/platform/default", this is // currently a no-op. - session_created->GetCell()->Set(true); + worker_session_created->GetCell()->Set(true); monitoring::StartExporter(); }