Skip to content

Push agent v2 logs to QE grafana #1185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 43 commits into from
Aug 15, 2025
Merged

Push agent v2 logs to QE grafana #1185

merged 43 commits into from
Aug 15, 2025

Conversation

john-david3
Copy link
Contributor

Proposed changes

  • Collect integration test results and logs using promtail, format and push to QE grafana dashboard

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • I have run make install-tools and have attached any dependency changes to this pull request
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • If applicable, I have updated any relevant documentation (README.md)
  • If applicable, I have tested my cross-platform changes on Ubuntu 22, Redhat 8, SUSE 15 and FreeBSD 13

@john-david3 john-david3 self-assigned this Jul 25, 2025
@john-david3 john-david3 requested a review from a team as a code owner July 25, 2025 14:44
@github-actions github-actions bot added the chore Pull requests for routine tasks label Jul 25, 2025
@oCHRISo oCHRISo added the v2.x Issues and Pull Requests related to the major version v2 label Jul 28, 2025
@@ -11,7 +11,6 @@ ARG CONTAINER_OS_TYPE

WORKDIR /agent
COPY ./build/${PACKAGE_NAME}.${CONTAINER_OS_TYPE} /agent/build/${PACKAGE_NAME}.${CONTAINER_OS_TYPE}
COPY ./ /agent

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this removed ?

@@ -0,0 +1,98 @@
#!/bin/bash

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Script to process test logs and generate formatted result files
# Usage: ./generate_results.sh <job_result> <start_time> <test_type> <workspace>
set -euo pipefail
# Check if required arguments are provided
if [ $# -lt 4 ]; then
echo "Usage: $0 <job_result> <start_time> <test_type> <workspace>"
exit 1
fi


INPUT_FILE="$WORKSPACE/test/dashboard/logs/$TEST_TYPE/raw_logs.log"
OUTPUT_PATH="$WORKSPACE/test/dashboard/logs/$TEST_TYPE"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Validate input file exists
if [ ! -f "$INPUT_FILE" ]; then
echo "Error: Input file not found: $INPUT_FILE"
exit 1
fi

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Aug 15, 2025
@john-david3 john-david3 requested a review from dhurley August 15, 2025 12:32
@john-david3 john-david3 merged commit 02770c1 into dev-v2 Aug 15, 2025
98 of 101 checks passed
@john-david3 john-david3 deleted the v2-qe-dashboard branch August 15, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Pull requests for routine tasks documentation Improvements or additions to documentation v2.x Issues and Pull Requests related to the major version v2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants