Skip to content

Capturing Bugzooka Usage metrics#108

Merged
mohit-sheth merged 2 commits into
redhat-performance:mainfrom
Balatripura587:usage_metrics
May 28, 2026
Merged

Capturing Bugzooka Usage metrics#108
mohit-sheth merged 2 commits into
redhat-performance:mainfrom
Balatripura587:usage_metrics

Conversation

@Balatripura587
Copy link
Copy Markdown
Collaborator

@Balatripura587 Balatripura587 commented May 18, 2026

Description:

Feature to add metrics collection from Bugzooka to understand its usage metrics across teams (Jira Issue Tracker ). As a part of this feature the following are implemented:

  • Events are emitted to OpenSearch for every BugZooka command
  • Each event would capture command name, team, user, success/failure, duration, token usage, retry counts, and command-specific metadata
  • To achieve this , we use a background daemon thread with an in-memory queue which periodically fetches events from the queue and performs a bulk write to the ES server.

For each command the following is the json event structure emitted to the ES server:
{
"command": "auto_analyze",
"trigger_type": "automatic",
"channel_id": "C12345",
"user_id": "U12345",
"team": "OCP-PerfScale",
"timestamp": "2026-05-19T10:30:00+00:00",
"success": true,
"error_message": null,
"error_type": null,
"duration_ms": 12500,
"retry_count": 0
}

In addition to these common fields, each command emits command-specific metrics specific to its workflow — such as total_tokens and tool_calls_count for analyze_pr, failure_type and used_llm for auto_analyze, etc.

Testing

  • Tested Locally and uploaded event to QE ES Server
image

Signed-off-by: Bala Tripura Kumari Bodapati <bbodapat@redhat.com>
@Balatripura587 Balatripura587 marked this pull request as ready for review May 19, 2026 12:49
Copy link
Copy Markdown
Collaborator

@mohit-sheth mohit-sheth left a comment

Choose a reason for hiding this comment

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

lgtm

@mohit-sheth mohit-sheth merged commit dc9edf5 into redhat-performance:main May 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants