Repository navigation
feat(controlplane): support HPA controller logs parsing and timeline mapping - #932
Merged
Merged
Conversation
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
September 1, 2026 03:03
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces support for processing and visualizing Kubernetes Horizontal Pod Autoscaler (HPA) controller logs. It adds HPA-specific log extraction, log filtering, grouping, and timeline mapping tasks, allowing HPA recommendations (both atomic and final) to be mapped to resource timelines. The feedback suggests improving the extraction of utilization metrics by using -1 as a sentinel value to correctly distinguish between unpopulated fields and valid 0% utilization values, updating the corresponding tests, and optimizing log ingestion by checking the component type before attempting to extract HPA-specific fields.
…mapping Add parsing for GKE HPA controller logs (atomicRecommendation and finalRecommendation), generate tag-style summaries ([HPA Final], [HPA Metric]), and map logs to the HPA resource timeline, target workload timeline, and control plane component timeline.
kyasbal
force-pushed
the
push-qvtnmnmplvun
branch
from
September 1, 2026 03:53
c10481a to
60059dc
Compare
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.
Summary
Add support for parsing GKE HPA controller logs (
atomicRecommendationandfinalRecommendation), generating readable tag-style summaries ([HPA Final],[HPA Metric]), and mapping logs to the appropriate timelines.Changes
atomicRecommendationandfinalRecommendationstructures fromjsonPayload.[HPA Final] <namespace>/<hpa>: <targetRef> <from> -> <to> replicas(or= <replicas> replicaswhen maintained).[HPA Metric] <namespace>/<hpa>: <metricName> (<current> / target <target>) -> <replicas> replicas.controlplanes/hpa-controllerautoscaling/v2/horizontalpodautoscaler/<namespace>/<name>targetRefhas validapiVersion):<targetAPIVersion>/<kind>/<namespace>/<name>contractandimplpackages covering field extraction, summary formatting, log ingestion, and timeline mapping.