Keep only the needed labels before unwrapping WAF scores #17

Merged
james merged 1 commit from dashboard-query-fixes into main 2026-10-25 16:38:25 +00:00
Owner

Dashboard fixes in integrations/grafana. No code changes.

  • Series limit: the overview's "CRS anomaly score of decisions" panel (three queries) and the review dashboard's per-client max WAF score now keep only the labels they need before unwrap waf_score. Without it, | json makes every field a label and busy ranges hit Loki's "maximum of series (500) reached". This matches gitops-infra PR #485. The review query was checked against Loki (format_query and /query).
  • Query string column: the review dashboard's Requests table column is renamed from Query to "Query string", and it shows a note instead of a blank cell when a request had no query string.
Dashboard fixes in integrations/grafana. No code changes. - **Series limit:** the overview's "CRS anomaly score of decisions" panel (three queries) and the review dashboard's per-client max WAF score now `keep` only the labels they need before `unwrap waf_score`. Without it, `| json` makes every field a label and busy ranges hit Loki's "maximum of series (500) reached". This matches gitops-infra PR #485. The review query was checked against Loki (format_query and /query). - **Query string column:** the review dashboard's Requests table column is renamed from Query to "Query string", and it shows a note instead of a blank cell when a request had no query string.
Keep only the needed labels before unwrapping WAF scores
All checks were successful
security-scan / security-scan (pull_request) Successful in 27s
test / go (pull_request) Successful in 3m18s
e8822864e2
The CRS anomaly score panel and the review dashboard's per-client max
score unwrapped waf_score after | json, which turns every field into a
label, so busy ranges hit Loki's series limit. Keep waf_score (and the
client and country the table groups by) first.

Also rename the review table's Query column to "Query string" and show
a note when a request had none, instead of a blank cell.

🔎 ojo scan results

No findings.

<!-- ojo-scan-summary --> ### 🔎 ojo scan results No findings.
james merged commit e4866f5bfd into main 2026-10-25 16:38:25 +00:00
james deleted branch dashboard-query-fixes 2026-10-25 16:38:26 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ColibriSec/centinela!17
No description provided.