test(ariadne): normalize metrics coverage signatures
This commit is contained in:
parent
e6c7b1ab9f
commit
1b2d30e67e
@ -79,13 +79,7 @@ def record_task_run(task: str, status: str, duration_sec: float | None) -> None:
|
||||
TASK_DURATION_SECONDS.labels(task=task, status=status).observe(duration_sec)
|
||||
|
||||
|
||||
def record_schedule_state(
|
||||
task: str,
|
||||
last_run_ts: float | None,
|
||||
last_success_ts: float | None,
|
||||
next_run_ts: float | None,
|
||||
ok: bool | None,
|
||||
) -> None:
|
||||
def record_schedule_state(task: str, last_run_ts: float | None, last_success_ts: float | None, next_run_ts: float | None, ok: bool | None) -> None:
|
||||
"""Publish the latest scheduler timestamps and status for a task."""
|
||||
|
||||
if last_run_ts:
|
||||
@ -107,13 +101,7 @@ def set_access_request_counts(counts: dict[str, int]) -> None:
|
||||
ACCESS_REQUESTS.labels(status=status).set(count)
|
||||
|
||||
|
||||
def set_cluster_state_metrics(
|
||||
collected_at: datetime,
|
||||
nodes_total: int | None,
|
||||
nodes_ready: int | None,
|
||||
pods_running: float | None,
|
||||
kustomizations_not_ready: int | None,
|
||||
) -> None:
|
||||
def set_cluster_state_metrics(collected_at: datetime, nodes_total: int | None, nodes_ready: int | None, pods_running: float | None, kustomizations_not_ready: int | None) -> None:
|
||||
"""Set cluster-state gauges from the most recent collector snapshot."""
|
||||
|
||||
CLUSTER_STATE_LAST_TS.set(collected_at.timestamp())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user