Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update grafana cloud's clusters recording rules to work with capi #1322

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

QuantumEnigmaa
Copy link
Contributor

Towards giantswarm/roadmap#3634

This PR updates the clusters.grafana-cloud.recording recording rules to work with CAPI so that the dashboards mentioned in the issue can have CAPI clusters' data .

Checklist

@QuantumEnigmaa QuantumEnigmaa self-assigned this Aug 14, 2024
# Scheduled cluster upgrade times
- expr: upgrade_schedule_operator_cluster_scheduled_upgrades_time
record: aggregation:giantswarm:cluster_scheduled_upgrades_time
- name: docker.grafana-cloud.recording
rules:
{{- if eq .Values.managementCluster.provider.flavor "vintage" }}
- expr: sum(engine_daemon_image_actions_seconds_count) by (cluster_id, cluster_type, customer, installation, pipeline, provider, region, action)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is vintage only

- expr: sum(cluster_service_cluster_info) by (release_version, cluster_id, cluster_type, customer, installation, pipeline, provider, region) / 2 or sum(cluster_operator_cluster_status{release_version!=""}) by (release_version, cluster_id, cluster_type, customer, installation, pipeline, provider, region)
record: aggregation:giantswarm:cluster_release_version
- expr: avg_over_time(cluster_operator_cluster_create_transition[1w])
record: aggregation:giantswarm:cluster_transition_create
- expr: avg_over_time(cluster_operator_cluster_update_transition[1w])
record: aggregation:giantswarm:cluster_transition_update
{{- else }}
# TODO
Copy link
Contributor

Choose a reason for hiding this comment

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

I would strongly suggest you ask @giantswarm/team-turtles for this

@QuentinBisson
Copy link
Contributor

I think @AverageMarcus added the missing versions. @QuantumEnigmaa do we need this again?

@AverageMarcus
Copy link
Member

I think @AverageMarcus added the missing versions. @QuantumEnigmaa do we need this again?

I only made a change to aggregation:giantswarm:cluster_release_version to support CAPI clusters.

@QuentinBisson
Copy link
Contributor

Ah alright, thanks :)

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.

3 participants