fix: enable metrics for content server

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

View file

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

View file

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

View file

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