Files
archify-vscode-ext-sync/charts/archify-sync/templates/metrics.yaml
T
root-at-skic 5c43b90ef8 Archify Sync server, Dockerfile and Helm chart
Rust server (axum, yrs, sqlx/PostgreSQL): live shared models over the y-websocket protocol, versions, browser sign-in with PKCE, invites, single sign-on through OIDC, metrics. Docker image on distroless, compose file, and a Helm chart with one pod, optional bundled PostgreSQL and secrets from existing Secrets.
2026-11-06 12:06:59 +02:00

35 lines
905 B
YAML

{{- if .Values.metrics.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "archify-sync.fullname" . }}-metrics
labels:
{{- include "archify-sync.labels" . | nindent 4 }}
app.kubernetes.io/component: metrics
spec:
type: ClusterIP
selector:
{{- include "archify-sync.selector" . | nindent 4 }}
ports:
- name: metrics
port: {{ .Values.metrics.port }}
targetPort: metrics
{{- if .Values.metrics.serviceMonitor.enabled }}
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "archify-sync.fullname" . }}
labels:
{{- include "archify-sync.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
app.kubernetes.io/component: metrics
app.kubernetes.io/instance: {{ .Release.Name }}
endpoints:
- port: metrics
interval: {{ .Values.metrics.serviceMonitor.interval }}
{{- end }}
{{- end }}