profile
viewpoint

Ask questionsvmagent errors in logs

I have a lot error messages like this:

2020-07-17T08:56:55.607Z        error   app/vmagent/remotewrite/client.go:237   couldn't send a block with size 19562 bytes to "http://127.0.0.1:8427/api/v1/write": write tcp4 127.0.0.1:40242->127.0.0.1:8427: write: broken pipe; re-sending the block in 2.000 seconds
2020-07-17T09:01:59.607Z        error   app/vmagent/remotewrite/client.go:237   couldn't send a block with size 19574 bytes to "http://127.0.0.1:8427/api/v1/write": write tcp4 127.0.0.1:41884->127.0.0.1:8427: write: broken pipe; re-sending the block in 2.000 seconds
2020-07-17T09:06:59.607Z        error   app/vmagent/remotewrite/client.go:237   couldn't send a block with size 19579 bytes to "http://127.0.0.1:8427/api/v1/write": write tcp4 127.0.0.1:42426->127.0.0.1:8427: write: broken pipe; re-sending the block in 2.000 seconds
2020-07-17T09:16:59.610Z        error   app/vmagent/remotewrite/client.go:237   couldn't send a block with size 19553 bytes to "http://127.0.0.1:8427/api/v1/write": write tcp4 127.0.0.1:42874->127.0.0.1:8427: write: broken pipe; re-sending the block in 2.000 seconds
2020-07-17T09:31:59.608Z        error   app/vmagent/remotewrite/client.go:237   couldn't send a block with size 19569 bytes to "http://127.0.0.1:8427/api/v1/write": write tcp4 127.0.0.1:43970->127.0.0.1:8427: write: broken pipe; re-sending the block in 2.000 seconds
2020-07-17T09:51:56.606Z        error   app/vmagent/remotewrite/client.go:237   couldn't send a block with size 19572 bytes to "http://127.0.0.1:8427/api/v1/write": write tcp4 127.0.0.1:45588->127.0.0.1:8427: write: broken pipe; re-sending the block in 2.000 seconds
2020-07-17T10:01:55.607Z        error   app/vmagent/remotewrite/client.go:237   couldn't send a block with size 19565 bytes to "http://127.0.0.1:8427/api/v1/write": write tcp4 127.0.0.1:47644->127.0.0.1:8427: write: broken pipe; re-sending the block in 2.000 seconds
2020-07-17T10:06:55.607Z        error   app/vmagent/remotewrite/client.go:237   couldn't send a block with size 19552 bytes to "http://127.0.0.1:8427/api/v1/write": write tcp4 127.0.0.1:48736->127.0.0.1:8427: write: broken pipe; re-sending the block in 2.000 seconds
2020-07-17T10:36:56.607Z        error   app/vmagent/remotewrite/client.go:237   couldn't send a block with size 19549 bytes to "http://127.0.0.1:8427/api/v1/write": write tcp4 127.0.0.1:49844->127.0.0.1:8427: write: broken pipe; re-sending the block in 2.000 seconds
2020-07-17T10:56:55.607Z        error   app/vmagent/remotewrite/client.go:237   couldn't send a block with size 19556 bytes to "http://127.0.0.1:8427/api/v1/write": write tcp4 127.0.0.1:52544->127.0.0.1:8427: write: broken pipe; re-sending the block in 2.000 seconds

Database instance are available.

vm config:

  --memory.allowedPercent=10
  --retentionPeriod=120
  --httpListenAddr=127.0.0.1:8427
  --dedup.minScrapeInterval=1s

vmagent config:

  --memory.allowedPercent=10
  --promscrape.config.strictParse=1
  --promscrape.config=/.../targets.yaml
  --promscrape.disableCompression=1
  --remoteWrite.showURL=1
  --remoteWrite.tmpDataPath=/.../vmagent
  --remoteWrite.url=http://127.0.0.1:8428/api/v1/write
  --remoteWrite.url=http://127.0.0.1:8427/api/v1/write
  --remoteWrite.url=http://127.0.0.1:8426/api/v1/write
  --remoteWrite.urlRelabelConfig=/.../system.yaml
  --remoteWrite.urlRelabelConfig=/.../etc.yaml
  --remoteWrite.urlRelabelConfig=/.../testing.yaml

How I can fix it?

VictoriaMetrics/VictoriaMetrics

Answer questions valyala

@Allineer , could you update both VictoriaMetrics and vmagent to the latest available release and verify whether the issue still exists?

useful!
source:https://uonfu.com/
Github User Rank List