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

Helm package #1

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
feat(monitoring): Add ServiceMonitor and PodMonitor for prom scrapping
  • Loading branch information
firehist committed Sep 10, 2023
commit 5f4d2f1a0e969cdf1217b69d9b91bf70c6655b60
8 changes: 4 additions & 4 deletions public/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ entries:
url: https://github.com/8gears/n8n-helm-chart/pull/46
apiVersion: v2
appVersion: 1.5.1
created: "2023-09-09T23:55:14.706293+02:00"
created: "2023-09-10T15:23:56.985943+02:00"
dependencies:
- condition: redis.enabled
name: redis
Expand All @@ -30,7 +30,7 @@ entries:
description: A Kubernetes Helm chart for n8n a free and open fair-code licensed
node based Workflow Automation Tool. Easily automate tasks across different
services.
digest: 5c85a208dc60c0bf20984b32b914c982a94f4109fd22851b927749bca7bcdb3c
digest: ac4def141f0ce90989766915cc945145406c370dafa81cf89b25404f184dba95
home: https://github.com/8gears/n8n-helm-chart
icon: https://avatars1.githubusercontent.com/u/45487711?s=200&v=4
keywords:
Expand Down Expand Up @@ -63,7 +63,7 @@ entries:
aka @swarnat\"\n url: https://github.com/swarnat\n"
apiVersion: v2
appVersion: 0.217.1
created: "2023-09-09T23:55:14.683568+02:00"
created: "2023-09-10T15:23:56.94888+02:00"
dependencies:
- condition: redis.enabled
name: redis
Expand Down Expand Up @@ -92,4 +92,4 @@ entries:
urls:
- https://elium.github.io/n8n-helm-chart/n8n-0.10.0.tgz
version: 0.10.0
generated: "2023-09-09T23:55:14.67762+02:00"
generated: "2023-09-10T15:23:56.939033+02:00"
Binary file modified public/n8n-0.12.1.tgz
Binary file not shown.
20 changes: 20 additions & 0 deletions templates/podmonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{- if and .Values.scaling.enabled .Values.metrics.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
namespace: {{ .Values.metrics.namespace | default "monitoring" }}
name: {{ include "n8n.fullname" . }}
labels:
{{- include "n8n.labels" . | nindent 4 }}
spec:
podMetricsEndpoints:
- port: http
path: /metrics
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
selector:
matchLabels:
{{- include "n8n.selectorLabels" . | nindent 6 }}
app.kubernetes.io/type: worker
{{- end }}
4 changes: 0 additions & 4 deletions templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ metadata:
name: {{ include "n8n.fullname" . }}
labels:
{{- include "n8n.labels" . | nindent 4 }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
endpoints:
- path: /metrics
Expand Down