Skip to content
Permalink
Browse files

#692: Added get_metric_addr to the ClipperConnection (#693)

* #692: Added get_admin_addr and get_metric_addr to the ClipperConnection API

* #692: removed get_admin_addr because clipperConnection is an interface to communicate with management frontend. It is unncessary
  • Loading branch information...
rkooo567 authored and simon-mo committed May 14, 2019
1 parent 7d1d769 commit 6e6c0c7e33f5bf0c6bda57e8aee44cb29da77b6c
Showing with 18 additions and 0 deletions.
  1. +18 −0 clipper_admin/clipper_admin/clipper_admin.py
@@ -1231,6 +1231,24 @@ def get_query_addr(self):
raise UnconnectedException()
return self.cm.get_query_addr()

def get_metric_addr(self):
"""Get the IP address of Prometheus metric server.
Returns
-------
str
The address as an IP address or hostname.
Raises
------
:py:exc:`clipper.UnconnectedException`
versions. All replicas for each version of each model will be stopped.
"""

if not self.connected:
raise UnconnectedException()
self.cm.get_metric_addr()

def stop_models(self, model_names):
"""Stops all versions of the specified models.

0 comments on commit 6e6c0c7

Please sign in to comment.
You can’t perform that action at this time.