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

Preview environments: Add extra external_labels to Prometheus #10668

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

ArthurSens
Copy link
Contributor

Description

Add extra external_labels for preview environments. External labels are labels that are added to all metrics when Prometheus performs remote-write to a Long Term Storage. More context on why we need them can be seen in the issue https://github.com/gitpod-io/ops/issues/2770

Related Issue(s)

Fixes https://github.com/gitpod-io/ops/issues/2771

How to test

  • Start a new werft job with werft run github -f -s .werft/jobs/build/deploy-to-preview-environment.ts -s .werft/observability/monitoring-satellite.ts
  • Install the preview environment context with previewctl install-context
  • Describe the prometheus object with kubectl describe prometheus k8s
  • You should see the external labels configured:

image

Release Notes

NONE

Signed-off-by: ArthurSens <arthursens2005@gmail.com>
Copy link
Contributor

@mads-hartmann mads-hartmann left a comment

Choose a reason for hiding this comment

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

Nice 🛹

@roboquat roboquat merged commit ef6ab5f into main Jun 15, 2022
@roboquat roboquat deleted the as/satellite-external-labels branch June 15, 2022 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants