fix: stop actual-budget-exporter probes from hitting login-triggering /metrics
readinessProbe/livenessProbe hit /metrics on top of Prometheus's own scrapes; exporter re-logs into actual_server on every call (no session reuse), tripped actual_server's login rate limit (too-many-requests). Switch probes to tcpSocket and stretch scrape interval to 5m.
This commit is contained in:
@@ -41,17 +41,19 @@ spec:
|
|||||||
key: ACTUAL_E2E_PASSWORD_1
|
key: ACTUAL_E2E_PASSWORD_1
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
# No documented dedicated health endpoint; /metrics is the route
|
# /metrics does a full login against actual_server on every hit
|
||||||
# that's always up once the exporter has started.
|
# (see actual-api-service.js: initializeApi() runs per getMetrics()
|
||||||
|
# call) — an httpGet probe against it every 10-20s was stacking on
|
||||||
|
# top of Prometheus's own scrapes and tripped actual_server's
|
||||||
|
# login-attempt rate limit ("too-many-requests"). Probe TCP only;
|
||||||
|
# let Prometheus be the sole thing that ever calls /metrics.
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
tcpSocket:
|
||||||
path: /metrics
|
|
||||||
port: {{ .Values.service.port }}
|
port: {{ .Values.service.port }}
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
tcpSocket:
|
||||||
path: /metrics
|
|
||||||
port: {{ .Values.service.port }}
|
port: {{ .Values.service.port }}
|
||||||
initialDelaySeconds: 15
|
initialDelaySeconds: 15
|
||||||
periodSeconds: 20
|
periodSeconds: 20
|
||||||
|
|||||||
@@ -34,4 +34,6 @@ resources:
|
|||||||
|
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: true
|
enabled: true
|
||||||
interval: 30s
|
# Each scrape does a full login against actual_server (no session reuse in
|
||||||
|
# this exporter) — kept long to avoid tripping its login rate limit.
|
||||||
|
interval: 5m
|
||||||
|
|||||||
Reference in New Issue
Block a user