Skip to main content

Check task metric readiness for Grafana

GET
/tasks/metrics-ready/{id}

Returns ready=true when nonzero client metrics appear in ClickHouse (or any nonzero metrics if the task has no clients). This prevents the UI from opening a dashboard that contains only server-side zeros before client traffic starts.

Contract

Parameter
Value
Sectiontasks
AuthenticationCookieAuth
Consumesnot required
Producesapplication/json

Parameters

1 parameter

Name
Location
Required
Type
Description
idpathyesintegerTask ID

Responses

5 responses

Status
Description
Type
200
Metric readinessobject
400
Invalid IDobject
401
Unauthorizedobject
404
Task not foundobject
500
Internal server errorobject
  • {}
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }