main
py 13 lines 318 Bytes
Raw
1 import json
2
3 import requests
4
5 import checks
6
7
8 class HydraCheck(checks.AgentCheck):
9 def check(self, instance) -> None:
10 r = requests.get(
11 "http://localhost:3000/status", headers={"Content-Type": "application/json"}
12 )
13 self.gauge("hydra.active_buildsteps", len(json.loads(r.text)))