Skip to content

Missing Metrics in HTTP Router Dashboard

Occasionally, we experience a lack of metrics for Cloudflare workers, resulting in an empty HTTP Router dashboard. A previous occurrence was noted from 2024-11-21 20:02 to 2024-11-22 00:50.

If this issue recurs, first verify whether the metrics exist for the affected time frame using the following GraphQL query:

Terminal window
echo '{ "query":
"query GetWorkersAnalytics($accountTag: string, $datetimeStart: string, $datetimeEnd: string, $scriptName: string) {
viewer {
accounts(filter: {accountTag: $accountTag}) {
workersInvocationsAdaptive(limit: 100, filter: {
scriptName: $scriptName,
datetime_geq: $datetimeStart,
datetime_leq: $datetimeEnd
}) {
sum {
subrequests
requests
errors
}
quantiles {
cpuTimeP50
cpuTimeP99
}
dimensions{
datetime
scriptName
status
}
}
}
}
}",
"variables": {
"accountTag": "852e9d53d0f8adbd9205389356f2303d",
"datetimeStart": "<START_TIME>",
"datetimeEnd": "<END_TIME>",
"scriptName": "production-gitlab-com-cells-http-router"
}
}' | tr -d '\n' | curl --silent \
https://api.cloudflare.com/client/v4/graphql \
--header "Authorization: Bearer <CLOUDFLARE_API_TOKEN>" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data @-

source docs

Replace the following placeholders:

  • <CLOUDFLARE_API_TOKEN>: Cloudflare API token.
    • Use the Read analytics and logs template when creating the token.
    • Set a short expiry date for this account-bound token for security purposes.
  • <START_TIME>: Beginning of the affected time period, e.g. 2024-11-25T00:00:00.000Z
  • <END_TIME>: End of the affected time period, e.g. 2024-11-25T01:00:00.000Z

If data is present in the query results, it likely indicates a delay in worker log processing, as mentioned in this Cloudflare support ticket.

  1. While not ideal, this situation is not cause for immediate concern.
  2. Metrics remain accessible through the Cloudflare Dashboard.
  3. Contact Cloudflare support to report the processing delay and request updates on their efforts to mitigate such issues.