Skip to content

Fix empty Top locations table on high-cardinality sites, force ASN to string

Aiho Tehisaru requested to merge fix/loki-max-query-series into trunk
  • loki-config.yml: raise limits_config.max_query_series from Loki's default (500) to 5000. sum by (request_uri) (...)-style panel queries materialize one series per distinct URI before topk() can trim it, so any site with 500+ distinct URIs in the window silently came back empty instead of erroring.
  • Top ASN: force the ASN column to string via convertFieldType. It's a categorical identifier, not a quantity, and Grafana was likely auto-inferring it as numeric - which may also be why ad hoc filtering only works on ASN org and not ASN number.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com Claude-Session: https://claude.ai/code/session_01EV6SQsz6pc6saCHMjNtFN9

Merge request reports

Loading