Skip to content

Conversation

@genofire
Copy link
Contributor

No description provided.

@genofire genofire requested a review from a team as a code owner November 29, 2023 08:29
@BeryJu BeryJu requested a review from rissson November 29, 2023 13:50
@wrenix
Copy link
Contributor

wrenix commented Jan 30, 2025

wow, this PR is approved for a year but not merged yet.

@rissson
Copy link
Member

rissson commented Jan 30, 2025

It needs some conflicts fixing and a review from @BeryJu

@rissson rissson requested a review from BeryJu January 30, 2025 17:26
@BeryJu BeryJu requested a review from rissson February 13, 2025 22:02
Copy link
Contributor

@wrenix wrenix left a comment

Choose a reason for hiding this comment

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

I also prefer without over by so you could be sure, that you do not remove any labels from the metrics or collection which could be interesting.

Here, you delete the namespace which is sad, if you have multiple authentik (e.g. staging) running.

labels:
severity: critical
expr: max without (endpoint,instance,container,pod,job,service) (authentik_outposts_connected{uid!~"specific.*"}) < 1
expr: max by (outpost) (authentik_outposts_connected{namespace="{{ $.Release.Namespace }}", service="{{ include "authentik.names.fullname" $ }}-metrics", uid!~"specific.*"}) < 1
Copy link
Contributor

Choose a reason for hiding this comment

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

missing namespace and service to identify which helm-release alerts ...

labels:
severity: critical
expr: max without (endpoint,instance,container,job,service) (authentik_admin_workers) < 1
expr: max by (pod) (authentik_admin_workers{namespace="{{ $.Release.Namespace }}", service="{{ include "authentik.names.fullname" $ }}-metrics"}) < 1
Copy link
Contributor

@wrenix wrenix Feb 14, 2025

Choose a reason for hiding this comment

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

extract the filter to a helm-template variable and reuse it everywhere (instatt of code copy):

{{- $filter := printf 'namespace="%s", service="%s-metrics"' .Release.Namespace (include "authentik.names.fullname" . ) }}
          expr: max by (pod) (authentik_admin_workers{ {{ $filter }} }) < 1

labels:
severity: critical
expr: max without (pid) (authentik_admin_workers) < 1
expr: max by (pod) (authentik_admin_workers{namespace="{{ $.Release.Namespace }}", service="{{ include "authentik.names.fullname" $ }}-metrics"}) < 1
Copy link
Member

Choose a reason for hiding this comment

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

The service is authentik-server-metrics, not just authentik-metrics, or {{ include "authentik.server.fullname" . }}-metrics

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we should use service=~"^{{ include "authentik.server.fullname" . }}.*"

Copy link
Member

Choose a reason for hiding this comment

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

Probably not

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