debug
Reading Logs from Podman
Container
Service
podman ps --format "{{.Names}}\t{{.Status}}" | grep -E "gitlab-collector|ci-pipeline-collector"A. GitLab Full Collection Cycle — Wall-Clock per Run
podman logs gitlab-collector 2>&1 | awk '
/Starting GitLab DevInsight data collection cycle/ {
start_ts = $1 " " $2
start_epoch = mktime(gensub(/[-:]/," ","g",start_ts))
}
/Completed GitLab DevInsight data collection cycle/ && start_epoch {
end_ts = $1 " " $2
end_epoch = mktime(gensub(/[-:]/," ","g",end_ts))
printf "%s -> %s %d sec\n", start_ts, end_ts, end_epoch - start_epoch
start_epoch = 0
}'B. GitLab Per-Job Aggregated Stats (runs / avg / min / max in ms)
C. Pipeline Collector — Per-Cycle Wall-Clock
D. Pipeline Collector — Summary Stats
Capturing Errors & Warnings
E. All ERROR / WARN lines
F. Errors with stack-trace context (15 lines after each ERROR)
G. Distinct errors, deduplicated and counted
H. HTTP failure status codes from the GitLab API
I. Per-project soft failures (404, skipped resources)
J. Rate-limiting, timeouts, connection issues
K. Cycle health summary — errors per GitLab cycle
Tips for Podman Log Capture
Pipeline Categorization Rules
Quick Reference
Priority
Name
Match type
Matched against
Sub-label dimensions
Rule 1 — NPC2 (priority 10)
JSON
Sub-label table
Example outputs
Rule 2 — TOM (priority 20)
JSON
Sub-label table
Example outputs
Rule 3 — Database (priority 30)
JSON
Example outputs
Rule 4 — NCD (priority 40)
JSON
Sub-label table
Example outputs
Installation — POST all rules in one go
Verify
Apply to stored data
Sub-rule field reference
Sub-rule semantics
Operational notes
Investigation — Pipeline categorization showing 81% "custom"
Hypotheses
A. Per-project cache contamination across pipelines
B. Stale enrichment from before classification was wired up
C. YAML fetch failing for many projects
Investigation queries
Query 1 — How many "custom" pipelines actually have template facts captured?
Query 2 — Sample a "custom" pipeline that should be NCD
Query 3 — Is there a YAML snapshot for that project?
Query 4 — When were the "custom" pipelines categorized?
Query 5 — Distribution of pipelineTemplateFile values among "custom"
pipelineTemplateFile values among "custom"Query 6 — Current active rules (sanity check)
Decision tree
Query 1 says
Query 4 says
Likely cause
Fix
Side observation — 11h cycle time
What to send back
Last updated