fix: enable metrics for content server
This commit is contained in:
parent
910438a6e7
commit
0f7e7985d5
3 changed files with 20 additions and 6 deletions
|
@ -6,6 +6,7 @@
|
||||||
"listen": [
|
"listen": [
|
||||||
":3000"
|
":3000"
|
||||||
],
|
],
|
||||||
|
"metrics": {},
|
||||||
"routes": [
|
"routes": [
|
||||||
{
|
{
|
||||||
"handle": [
|
"handle": [
|
||||||
|
@ -14,9 +15,19 @@
|
||||||
"root": "/usr/share/caddy",
|
"root": "/usr/share/caddy",
|
||||||
"index_names": [
|
"index_names": [
|
||||||
"index.html"
|
"index.html"
|
||||||
],
|
]
|
||||||
"pass_thru": true
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
"metrics" : {
|
||||||
|
"listen": [
|
||||||
|
":9100"
|
||||||
|
],
|
||||||
|
"routes": [
|
||||||
|
{
|
||||||
|
"handle": [
|
||||||
{
|
{
|
||||||
"handler": "metrics"
|
"handler": "metrics"
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,14 +36,17 @@ spec:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 3000
|
containerPort: 3000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
- name: metrics
|
||||||
|
containerPort: 9100
|
||||||
|
protocol: TCP
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /metrics
|
path: /metrics
|
||||||
port: http
|
port: metrics
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /metrics
|
path: /metrics
|
||||||
port: http
|
port: metrics
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
|
|
|
@ -9,4 +9,4 @@ spec:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "web.selectorLabels" . | nindent 6 }}
|
{{- include "web.selectorLabels" . | nindent 6 }}
|
||||||
podMetricsEndpoints:
|
podMetricsEndpoints:
|
||||||
- port: http
|
- port: metrics
|
Loading…
Reference in a new issue