Skip to content

Commit

Permalink
feat(monitoring): Add ServiceMonitor and PodMonitor for prom scrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
firehist committed Sep 10, 2023
1 parent 3157a27 commit 5f4d2f1
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
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

0 comments on commit 5f4d2f1

Please sign in to comment.