Open
Conversation
Add a new TelemetryEvent database model to capture structured telemetry events from pipeline services. This enables tracking of scheduler submissions, runtime errors, job skips, and test results across all runtimes, we will send this telemetry events from pipeline to api. The collection uses a 14-day TTL index (configurable via TELEMETRY_TTL_SECONDS env var) for automatic cleanup, plus compound indexes optimized for common query patterns (by kind, runtime+device_type, job_name, and result+infra_error). Also moves EVENT_HISTORY_TTL_SECONDS to the top of the file alongside the new TELEMETRY_TTL_SECONDS constant for consistency. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
Add abstract Telemetry interface and concrete LatestAPI implementation for pipeline telemetry endpoints: add(events): Bulk insert telemetry events via POST /telemetry find(attributes): Query events with filters via GET /telemetry stats(attributes): Get aggregated statistics via GET /telemetry/stats Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is groundwork to introduce models required by kernelci/kernelci-pipeline#1419