Skip to content

Commit dea0c1d

Browse files
committed
cleanup
1 parent 0b0a046 commit dea0c1d

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

pyth_observer/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ def __init__(
7777
config=config,
7878
)
7979

80-
metrics.observer_up = 1
81-
8280
async def run(self):
8381
# global states
8482
states = []
@@ -91,7 +89,6 @@ async def run(self):
9189
crosschain_prices = await self.get_crosschain_prices()
9290

9391
health_server.observer_ready = True
94-
metrics.observer_ready = 1
9592

9693
processed_feeds = 0
9794
active_publishers_by_symbol = {}
@@ -205,10 +202,7 @@ async def run(self):
205202
except Exception as e:
206203
logger.error(f"Error in run loop: {e}")
207204
health_server.observer_ready = False
208-
metrics.observer_ready = 0
209205
metrics.loop_errors_total.labels(error_type=type(e).__name__).inc()
210-
211-
metrics.observer_ready = 0
212206
await asyncio.sleep(5)
213207

214208
async def get_pyth_products(self) -> List[PythProductAccount]:

pyth_observer/metrics.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414

1515
class PythObserverMetrics:
16-
observer_ready = Gauge("pyth_observer_up", "Pyth observer is up")
17-
1816
def __init__(self, registry: CollectorRegistry = REGISTRY):
1917
self.registry = registry
2018

@@ -150,9 +148,6 @@ def __init__(self, registry: CollectorRegistry = REGISTRY):
150148
registry=registry,
151149
)
152150

153-
self.observer_up = 1
154-
self.observer_ready = 0
155-
156151
def set_observer_info(self, network: str, config: Dict[str, Any]):
157152
"""Set static information about the observer instance."""
158153
self.observer_info.info(

0 commit comments

Comments
 (0)