fix: expose metrics for same server
This commit is contained in:
parent
a485e241b8
commit
910438a6e7
3 changed files with 6 additions and 19 deletions
|
@ -14,19 +14,9 @@
|
||||||
"root": "/usr/share/caddy",
|
"root": "/usr/share/caddy",
|
||||||
"index_names": [
|
"index_names": [
|
||||||
"index.html"
|
"index.html"
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"metrics" : {
|
|
||||||
"listen": [
|
|
||||||
":9100"
|
|
||||||
],
|
],
|
||||||
"routes": [
|
"pass_thru": true
|
||||||
{
|
},
|
||||||
"handle": [
|
|
||||||
{
|
{
|
||||||
"handler": "metrics"
|
"handler": "metrics"
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,17 +36,14 @@ 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: metrics
|
port: http
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /metrics
|
path: /metrics
|
||||||
port: metrics
|
port: http
|
||||||
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: metrics
|
- port: http
|
Loading…
Reference in a new issue