Skip to content
Snippets Groups Projects
Commit 0706f414 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Added missing metrics server in Telemetry Frontend

parent d97e685a
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!258Resolve "Re-designing of Telemetry"
......@@ -13,7 +13,8 @@
# limitations under the License.
import logging, signal, sys, threading
from common.Settings import get_log_level
from prometheus_client import start_http_server
from common.Settings import get_log_level, get_metrics_port
from .TelemetryFrontendService import TelemetryFrontendService
terminate = threading.Event()
......@@ -35,6 +36,10 @@ def main():
LOGGER.debug('Starting...')
# Start metrics server
metrics_port = get_metrics_port()
start_http_server(metrics_port)
grpc_service = TelemetryFrontendService()
grpc_service.start()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment