Skip to content

maxScrapeSize

Errors

promscrape.maxScrapeSize is too small

bash
exceeds -promscrape.maxScrapeSize=16777216;
either reduce the response size for the target or increase -promscrape.maxScrapeSize

Configuration

Update vmagent deployment, add --promscrape.maxScrapeSize: 128MB.

bash
spec:
  containers:
  - args:
    - --envflag.enable
    - --envflag.prefix=VM_
    - --httpListenAddr=:8429
    - --loggerFormat=json
    - --promscrape.config=/config/scrape/scrape.yml
    - --remoteWrite.tmpDataPath=/tmpData
    - --remoteWrite.url=http://vm-cluster-victoria-metrics-cluster-vminsert:8480/insert/0/prometheus
    - --promscrape.maxScrapeSize: 64MB

If vmagent CR exists(Manage by VM Operator), update it.

bash
kubectl get vmagent
bash
kubectl edit vmagent foo
bash
spec:
  extraArgs:
    promscrape.maxScrapeSize: 64MB

References