feat: add observability-metrics-gcp-cloudmonitoring module#277
Draft
JanakaSandaruwan wants to merge 5 commits into
Draft
feat: add observability-metrics-gcp-cloudmonitoring module#277JanakaSandaruwan wants to merge 5 commits into
JanakaSandaruwan wants to merge 5 commits into
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: Janaka Sandaruwan <janakasandaruwan1996@gmail.com>
Signed-off-by: Janaka Sandaruwan <janakasandaruwan1996@gmail.com>
Signed-off-by: Janaka Sandaruwan <janakasandaruwan1996@gmail.com>
Signed-off-by: Janaka Sandaruwan <janakasandaruwan1996@gmail.com>
5435bbf to
0bc16ab
Compare
Signed-off-by: Janaka Sandaruwan <janakasandaruwan1996@gmail.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.
Purpose
Adds a new OpenChoreo observability metrics adapter backed by GCP Cloud
Monitoring. It serves per-component CPU/memory time series from the GKE
system metrics Google's built-in agent publishes for every GKE cluster, and
manages alert rules as Cloud Monitoring alert policies — no data-plane
collector required.
Approach
POST /api/v1/metrics/query): six parallelListTimeSeriescalls againstk8s_container, scoped by the OpenChoreocomponent/project/environment-uidmetadata labels (UID-only, matching thePrometheus and Azure Monitor siblings). HTTP RED metrics return an empty
series; runtime topology returns
501.POST/GET/PUT/DELETE /api/v1alpha1/alerts/rules):maps each rule to a Cloud Monitoring AlertPolicy as a usage÷limit ratio
MetricThreshold (threshold is a percentage of the pod's limit), using GCP's
native denominator filter. Dedup/lookup via policy
user_labels. All sixoperators supported natively.
POST /api/v1alpha1/alerts/webhook): parses theCloud Monitoring incident payload and forwards firing alerts to the
Observer's internal endpoint. The public webhook path is guarded by a
shared-secret check (Basic-auth password / header / query token).
helm/): Deployment + Service + ServiceAccount + ConfigMap,plus optional webhook Secret, Gateway HTTPRoute, and NetworkPolicy. Alerting
is enabled only when a notification channel is configured; metrics-only
installs need just
roles/monitoring.viewer.Prerequisites, IAM roles, Helm install, alerting, troubleshooting,
configuration reference).
Boot-time fail-fast ping of Cloud Monitoring (and notification-channel verify
when alerting is on).
Related Issues
N/A
Checklist