Skip to content

Conversation

@hsmatulis
Copy link
Collaborator

The prometheus image in the example directory should be kept in sync with the one used by the 0.17 branch

@hsmatulis hsmatulis changed the title fix: Update out of sync Prometheus image fix: update out of sync Prometheus image Oct 27, 2025
@hsmatulis hsmatulis force-pushed the hsmatulis-patch-examples branch from 946ded5 to 46f589a Compare October 27, 2025 22:37
The prometheus image in the example directory should be kept in sync with the one used by the 0.17 branch

Signed-off-by: Henrique Matulis <[email protected]>
@hsmatulis hsmatulis force-pushed the hsmatulis-patch-examples branch from 46f589a to 06f35ed Compare October 27, 2025 22:38
relabel_configs:
- source_labels: [__meta_kubernetes_pod_label_app]
regex: prom-example
regex: prom-example.*
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why this?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this is enough, actually... the "app" label doesn't seem to be set on the nilebox manifest: https://raw.githubusercontent.com/GoogleCloudPlatform/prometheus-engine/main/examples/example-app.yaml

So this matches nothing.

IME this needs to be set to __meta_kubernetes_pod_name, and you need the regex because k8s adds random characters after prom-example

Or we update the manifest to set the app label

- linux
initContainers:
- name: config-init
image: gke.gcr.io/gke-distroless/bash:gke_distroless_20240607.00_p0
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is ideally bumped

- name: prometheus-db
mountPath: /prometheus/data
- name: config-reloader
image: gke.gcr.io/prometheus-engine/config-reloader:v0.12.0-gke.5
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we quickly hook it with /charts while we are here?

Copy link
Collaborator

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Thanks, added some comments. Also not sure if docs should link to unreleased 0.17 branch/release at the moment or should we just use main. Let's chat

Also please update commit msg, that's why conform is complaining.

FYI, have you seen #1786?

Nevertheless let's converge to something that will work for docs. I'd say .6 image with config-reloader bump and doing this on 0.15 release might be best for now (let's discuss in gchat), but I wonder if there's a room for special branch for docs or at least minimal templating for basics like config-reloader version.

containers:
- name: prometheus
image: gke.gcr.io/prometheus-engine/prometheus:v2.45.3-gmp.7-gke.0
image: gke.gcr.io/prometheus-engine/prometheus:v2.53.5-gmp.0-gke.8
Copy link
Collaborator

Choose a reason for hiding this comment

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

So the issue, as mentioned in our docs, is the unfortunate cycle: Our repos is the source for building but also contain examples and outputs to use ONCE things are built and deployed. This image does not exists until we release things to GKE. Louhi flow only builds to staging. This is a major pain, but there's not much we can do, unless we want to show staging here OR some automation for creating PRs once we have GKE prod images.

That's why @lyanco changed to bit older image in #1786

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looking on prod registry, I see .6 which is probably the best we can share now.

Suggested change
image: gke.gcr.io/prometheus-engine/prometheus:v2.53.5-gmp.0-gke.8
image: gke.gcr.io/prometheus-engine/prometheus:v2.53.5-gmp.0-gke.6

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.

4 participants