Skip to content

feat(helm): Add health probes to loki in backend - #18548

Merged
Jayclifford345 merged 10 commits into
grafana:mainfrom
lindhe:loki-backend-healthprobes
Sep 9, 2025
Merged

feat(helm): Add health probes to loki in backend#18548
Jayclifford345 merged 10 commits into
grafana:mainfrom
lindhe:loki-backend-healthprobes

Conversation

@lindhe

@lindhe lindhe commented Jul 23, 2025

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

This change makes it possible to configure livenessProbe and startupProbe to the loki container in the backend pods. Also adds a guard for when the readinessProbe is unset.

Which issue(s) this PR fixes:

Partially addresses #13678

Special notes for your reviewer:

Partially replaces #15359

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • Title matches the required conventional commits format, see here
    • Note that Promtail is considered to be feature complete, and future development for logs collection will be in Grafana Alloy. As such, feat PRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • If the change is deprecating or removing a configuration option, update the deprecated-config.yaml and deleted-config.yaml files respectively in the tools/deprecated-config-checker directory. Example PR
@lindhe
lindhe requested a review from a team as a code owner July 23, 2025 12:58
lindhe added 2 commits July 23, 2025 15:07
Signed-off-by: Andreas Lindhé <7773090+lindhe@users.noreply.github.com>
This change makes it possible to configure `livenessProbe` and
`startupProbe` to the loki container in the backend pods.
Also adds a guard for when the `readinessProbe` is unset.

Signed-off-by: Andreas Lindhé <7773090+lindhe@users.noreply.github.com>
@lindhe
lindhe force-pushed the loki-backend-healthprobes branch from fb82597 to 4684a02 Compare July 23, 2025 13:09

@jkroepke jkroepke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi thanks for your PR. Please take note of my comments

Comment thread production/helm/loki/templates/backend/statefulset-backend.yaml Outdated
Comment thread production/helm/loki/CHANGELOG.md Outdated
Comment thread production/helm/loki/values.yaml
lindhe and others added 3 commits July 24, 2025 09:57
Co-authored-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Andreas Lindhé <7773090+lindhe@users.noreply.github.com>
Co-authored-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Andreas Lindhé <7773090+lindhe@users.noreply.github.com>
Turns out some components (at least
templates/distributor/deployment-distributor.yaml)
was already using `.Values.loki.{livenessProbe,startupProbe}` despite
them being unset before.
So to be backwards compatible, I set them to null by default instead of
empty object.

@jkroepke jkroepke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Discussion about loki.livenessProbe done in #18545.

@jkroepke jkroepke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wait for #18551

Comment thread production/helm/loki/values.yaml Outdated
Comment thread production/helm/loki/values.yaml Outdated
Comment thread production/helm/loki/CHANGELOG.md Outdated
@jkroepke

Copy link
Copy Markdown
Contributor

hi @lindhe could you also do a merge from main, too?

lindhe added 2 commits August 18, 2025 20:32
Signed-off-by: Andreas Lindhé <7773090+lindhe@users.noreply.github.com>
Signed-off-by: Andreas Lindhé <7773090+lindhe@users.noreply.github.com>
@pull-request-size pull-request-size Bot added size/S and removed size/XS labels Sep 5, 2025

@jkroepke jkroepke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks!

@Jayclifford345 Jayclifford345 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@Jayclifford345
Jayclifford345 merged commit 10441c8 into grafana:main Sep 9, 2025
86 checks passed
@lindhe

lindhe commented Sep 10, 2025

Copy link
Copy Markdown
Contributor Author

Great, thanks! Now that these PRs have all been merged, I'll add a bunch more PRs soon! Little by little, we are achieving #15359 💪

@lindhe
lindhe deleted the loki-backend-healthprobes branch September 10, 2025 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 participants