Skip to content
Snippets Groups Projects
Commit ab459c08 authored by Jan David Mol's avatar Jan David Mol
Browse files

Fix rpc server import

parent 0df0e962
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ from typing import Dict ...@@ -3,7 +3,7 @@ from typing import Dict
import grpc import grpc
import logging import logging
from prometheus_client import Count, Metric from prometheus_client import Counter, Metric
from ._proto import observation_pb2 from ._proto import observation_pb2
from ._proto import observation_pb2_grpc from ._proto import observation_pb2_grpc
...@@ -40,7 +40,7 @@ class Observation(observation_pb2_grpc.ObservationServicer): ...@@ -40,7 +40,7 @@ class Observation(observation_pb2_grpc.ObservationServicer):
) )
def _add_metric_count(self, name: str, desc: str): def _add_metric_count(self, name: str, desc: str):
self.metrics[name] = Count( self.metrics[name] = Counter(
name, name,
desc, desc,
["service"], ["service"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment