feat: add Prometheus telemetry collection with API-based time-window…#231
Open
Sypher845 wants to merge 5 commits into
Open
feat: add Prometheus telemetry collection with API-based time-window…#231Sypher845 wants to merge 5 commits into
Sypher845 wants to merge 5 commits into
Conversation
Sypher845
force-pushed
the
optimize-prometheus-telemetry-collection
branch
from
January 15, 2026 19:26
906d9e2 to
3000e50
Compare
6 tasks
…e-window filtering Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
Sypher845
force-pushed
the
optimize-prometheus-telemetry-collection
branch
2 times, most recently
from
January 16, 2026 18:48
226d6fc to
b28d3c6
Compare
Signed-off-by: Sypher845 <suyashpatil845@gmail.com>
Sypher845
force-pushed
the
optimize-prometheus-telemetry-collection
branch
from
January 16, 2026 19:09
b28d3c6 to
7d13c1f
Compare
|
Hi @Sypher845! 👋 One or more commits in this PR are missing a Unsigned commits:
To fix, rebase and sign off all commits: git rebase HEAD~3 --signoff
git push --force-with-leaseOr, to sign off every commit in this PR at once: git rebase origin/main --signoff
git push --force-with-lease
The |
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.
Description
This PR optimizes Prometheus telemetry collection by adding an optional API-based collection method with time-window filtering.
Key Changes:
PrometheusExporterclass that leverages existingKrknPrometheusfor API-based metrics collectionget_prometheus_pod_data()with optional parameters:start_timestamp,end_timestamp,prometheus_url,prometheus_bearer_tokenget_ocp_prometheus_data()to support new API collection methodNew Configuration Keys (all optional):
prometheus_backup_use_api: Enable/disable API collection (default: true)prometheus_time_window_minutes_before: Buffer before start time (default: 10)prometheus_time_window_minutes_after: Buffer after end time (default: 10)Documentation
Related Documentation PR (if applicable)
This PR helps in solving the issue #881 in krkn
Related Issue:* krkn-chaos/krkn#881