You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
podman ps -a --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"| grep -E "$OLLAMA_CONTAINER|$AGENT_CONTAINER|ci-analysis"||echo" No related containers found"
516
+
podman ps -a --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"| grep -E "$OLLAMA_CONTAINER|$AGENT_CONTAINER|$LOKI_MCP_CONTAINER|ci-analysis"||echo" No related containers found"
458
517
echo""
459
518
echo"Volumes:"
460
519
podman volume ls --format "table {{.Name}}\t{{.Driver}}"| grep -E "ollama|ci-analysis"||echo" No related volumes found"
461
520
echo""
462
521
echo"Images:"
463
-
podman images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}"| grep -E "ollama|ci-analysis"||echo" No related images found"
522
+
podman images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}"| grep -E "ollama|ci-analysis|loki-mcp"||echo" No related images found"
- Retrieve and analyze Grafana Loki logs for a specific CI job invocation to identify architecture mismatch errors, specifically messages matching the case-insensitive pattern "exec format".
8
+
9
+
Required user inputs in each request:
10
+
- start_time: the absolute start of the time range to search.
11
+
- end_time: the absolute end of the time range to search.
12
+
- job_name: the name of the job to search for.
13
+
- build_id: the id of the build to search for.
14
+
15
+
Time handling rules:
16
+
- Accept start_time and end_time as either Unix epoch milliseconds or ISO 8601 / RFC3339 timestamps.
17
+
- If the user does not provide both, ask them to provide both before proceeding.
18
+
- Convert any non-epoch-millisecond timestamps to epoch milliseconds before calling tools.
19
+
- If start_time >= end_time, ask the user to correct the range.
20
+
21
+
Data source and query:
22
+
- Always query Grafana Loki using the loki_query tool.
- Keep outputs concise and focused on the error pattern.
38
+
- Report total matches, and surface 3–5 representative lines with timestamps.
39
+
- Briefly note any repeated message patterns or clusters.
40
+
- Provide a convenience link for further inspection in Grafana Explore with orgId=1 and the requested time range, e.g., https://grafana-loki.ci.openshift.org/explore?orgId=1
0 commit comments