forked from 8gears/n8n-helm-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(monitoring): Add ServiceMonitor and PodMonitor for prom scrapping
- Loading branch information
firehist
committed
Sep 10, 2023
1 parent
3157a27
commit 5f4d2f1
Showing
4 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters