2026-08-04 21:12:31 -03:00
|
|
|
# services/monitoring/availability-backfill-v4-job.yaml
|
2026-08-04 21:02:19 -03:00
|
|
|
apiVersion: v1
|
|
|
|
|
kind: ConfigMap
|
|
|
|
|
metadata:
|
2026-08-04 21:12:31 -03:00
|
|
|
name: atlas-availability-request-v4-backfill-rules
|
2026-08-04 21:02:19 -03:00
|
|
|
namespace: monitoring
|
|
|
|
|
data:
|
2026-08-04 21:12:31 -03:00
|
|
|
atlas-request-history.yaml: |
|
2026-08-04 21:02:19 -03:00
|
|
|
groups:
|
2026-08-04 21:12:31 -03:00
|
|
|
- name: atlas.availability.request.backfill
|
2026-08-04 21:02:19 -03:00
|
|
|
interval: 1h
|
|
|
|
|
rules:
|
2026-08-04 21:12:31 -03:00
|
|
|
- record: atlas:availability:requests_1h
|
2026-08-04 21:02:19 -03:00
|
|
|
expr: |
|
|
|
|
|
sum(increase(
|
|
|
|
|
traefik_entrypoint_requests_total{
|
|
|
|
|
entrypoint="websecure",
|
|
|
|
|
protocol="http",
|
|
|
|
|
code=~"[1-5].."
|
|
|
|
|
}[1h]
|
|
|
|
|
))
|
|
|
|
|
labels:
|
2026-08-04 21:12:31 -03:00
|
|
|
definition: request-v4
|
2026-08-04 21:02:19 -03:00
|
|
|
scope: atlas
|
|
|
|
|
rollup: hourly
|
2026-08-04 21:12:31 -03:00
|
|
|
- record: atlas:availability:failures_1h
|
2026-08-04 21:02:19 -03:00
|
|
|
expr: |
|
|
|
|
|
sum(increase(
|
|
|
|
|
traefik_entrypoint_requests_total{
|
|
|
|
|
entrypoint="websecure",
|
|
|
|
|
protocol="http",
|
2026-08-04 21:12:31 -03:00
|
|
|
code=~"5.."
|
2026-08-04 21:02:19 -03:00
|
|
|
}[1h]
|
|
|
|
|
))
|
|
|
|
|
labels:
|
2026-08-04 21:12:31 -03:00
|
|
|
definition: request-v4
|
2026-08-04 21:02:19 -03:00
|
|
|
scope: atlas
|
|
|
|
|
rollup: hourly
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
apiVersion: batch/v1
|
|
|
|
|
kind: Job
|
|
|
|
|
metadata:
|
2026-08-04 21:12:31 -03:00
|
|
|
name: atlas-availability-request-v4-backfill
|
2026-08-04 21:02:19 -03:00
|
|
|
namespace: monitoring
|
|
|
|
|
spec:
|
|
|
|
|
backoffLimit: 2
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
2026-08-04 21:12:31 -03:00
|
|
|
app: atlas-availability-request-v4-backfill
|
2026-08-04 21:02:19 -03:00
|
|
|
spec:
|
|
|
|
|
restartPolicy: Never
|
|
|
|
|
affinity:
|
|
|
|
|
nodeAffinity:
|
|
|
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
|
nodeSelectorTerms:
|
|
|
|
|
- matchExpressions:
|
|
|
|
|
- key: kubernetes.io/hostname
|
|
|
|
|
operator: NotIn
|
|
|
|
|
values:
|
|
|
|
|
- titan-22
|
|
|
|
|
- titan-24
|
|
|
|
|
containers:
|
|
|
|
|
- name: vmalert-replay
|
|
|
|
|
image: victoriametrics/vmalert:v1.113.0
|
|
|
|
|
args:
|
|
|
|
|
- -datasource.url=http://victoria-metrics-single-server:8428
|
|
|
|
|
- -remoteWrite.url=http://victoria-metrics-single-server:8428
|
|
|
|
|
- -remoteWrite.flushInterval=1s
|
|
|
|
|
- -rule=/etc/vmalert/backfill/*.yaml
|
|
|
|
|
- -replay.timeFrom=2026-05-01T00:00:00Z
|
|
|
|
|
- -replay.timeTo=2026-08-04T23:00:00Z
|
|
|
|
|
- -replay.maxDatapointsPerQuery=48
|
|
|
|
|
- -replay.rulesDelay=2s
|
|
|
|
|
- -replay.disableProgressBar
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
cpu: 100m
|
|
|
|
|
memory: 128Mi
|
|
|
|
|
limits:
|
|
|
|
|
cpu: "1"
|
|
|
|
|
memory: 512Mi
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: rules
|
|
|
|
|
mountPath: /etc/vmalert/backfill
|
|
|
|
|
readOnly: true
|
|
|
|
|
volumes:
|
|
|
|
|
- name: rules
|
|
|
|
|
configMap:
|
2026-08-04 21:12:31 -03:00
|
|
|
name: atlas-availability-request-v4-backfill-rules
|