fix: expose metrics for same server

This commit is contained in:
Peter 2022-12-29 17:38:37 +01:00
parent a485e241b8
commit 910438a6e7
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9
3 changed files with 6 additions and 19 deletions

View file

@ -14,19 +14,9 @@
"root": "/usr/share/caddy",
"index_names": [
"index.html"
]
}
]
}
]
},
"metrics" : {
"listen": [
":9100"
],
"routes": [
{
"handle": [
"pass_thru": true
},
{
"handler": "metrics"
}

View file

@ -36,17 +36,14 @@ spec:
- name: http
containerPort: 3000
protocol: TCP
- name: metrics
containerPort: 9100
protocol: TCP
livenessProbe:
httpGet:
path: /metrics
port: metrics
port: http
readinessProbe:
httpGet:
path: /metrics
port: metrics
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}

View file

@ -9,4 +9,4 @@ spec:
matchLabels:
{{- include "web.selectorLabels" . | nindent 6 }}
podMetricsEndpoints:
- port: metrics
- port: http