alexbers / mtprotoproxy

Async MTProto proxy for Telegram
MIT License
1.59k stars 351 forks source link

metrics: broken pipe #208

Closed Allineer closed 4 years ago

Allineer commented 4 years ago

MTProtoProxy v1.1.0 I have some trouble with metrics, while scraping by vmagent:

Config:

METRICS_LISTEN_ADDR_IPV4 = "127.0.0.1"
METRICS_LISTEN_ADDR_IPV6 = None
METRICS_PORT = 4080

vmagent logs:

2020-03-20T09:51:57.252Z        error   lib/promscrape/scrapework.go:127        error when scraping "http://127.0.0.1:4080/metrics": write tcp4 127.0.0.1:44802->127.0.0.1:4080: write: broken pipe
2020-03-20T09:53:57.252Z        error   lib/promscrape/scrapework.go:127        error when scraping "http://127.0.0.1:4080/metrics": write tcp4 127.0.0.1:44828->127.0.0.1:4080: write: broken pipe
2020-03-20T09:55:57.252Z        error   lib/promscrape/scrapework.go:127        error when scraping "http://127.0.0.1:4080/metrics": write tcp4 127.0.0.1:44856->127.0.0.1:4080: write: broken pipe
2020-03-20T09:57:57.252Z        error   lib/promscrape/scrapework.go:127        error when scraping "http://127.0.0.1:4080/metrics": write tcp4 127.0.0.1:44882->127.0.0.1:4080: write: broken pipe
2020-03-20T09:59:57.252Z        error   lib/promscrape/scrapework.go:127        error when scraping "http://127.0.0.1:4080/metrics": write tcp4 127.0.0.1:44908->127.0.0.1:4080: write: broken pipe
2020-03-20T10:01:57.252Z        error   lib/promscrape/scrapework.go:127        error when scraping "http://127.0.0.1:4080/metrics": the server closed connection before returning the first response byte. Make sure the server returns 'Connection: close' response header before closing the connection
2020-03-20T10:03:57.252Z        error   lib/promscrape/scrapework.go:127        error when scraping "http://127.0.0.1:4080/metrics": write tcp4 127.0.0.1:45008->127.0.0.1:4080: write: broken pipe
2020-03-20T10:05:57.252Z        error   lib/promscrape/scrapework.go:127        error when scraping "http://127.0.0.1:4080/metrics": write tcp4 127.0.0.1:45044->127.0.0.1:4080: write: broken pipe
2020-03-20T10:07:57.252Z        error   lib/promscrape/scrapework.go:127        error when scraping "http://127.0.0.1:4080/metrics": write tcp4 127.0.0.1:45070->127.0.0.1:4080: write: broken pipe
2020-03-20T10:09:57.252Z        error   lib/promscrape/scrapework.go:127        error when scraping "http://127.0.0.1:4080/metrics": write tcp4 127.0.0.1:45096->127.0.0.1:4080: write: broken pipe
2020-03-20T10:11:57.252Z        error   lib/promscrape/scrapework.go:127        error when scraping "http://127.0.0.1:4080/metrics": the server closed connection before returning the first response byte. Make sure the server returns 'Connection: close' response header before closing the connection

Доктор, это можно вылечить?