apache / apache/hertzbeat

[Feature] <title>指标采集数据量很大,导致存储数据到victoria-metrics,会导致http请求直接卡爆,没有资源可用

Open
#4,079 1 comment 0 reactions 0 assignees View on GitHub
new feature
Dominant language
Java
Stars
7.4k
Forks
1.3k
Avg merge
1d 20h
Merged PRs (30d)
32

Description

### Feature Request

6.788 [warehouse-persistent-data-storage] ERROR org.apache.monitor.warehouse.store.history.vm.VictoriaMetricsClusterDataStorage Line:192 - flush metrics data to victoria-metrics error: I/O error on POST request for "http://192.168.65.70:8480/insert/0/prometheus/api/v1/import": Cannot assign requested address.
org.springframework.web.client.ResourceAccessException: I/O error on POST request for "http://192.168.65.70:8480/insert/0/prometheus/api/v1/import": Cannot assign requested address
at org.springframework.web.client.RestTemplate.createResourceAccessException(RestTemplate.java:915)

### Is your feature request related to a problem? Please describe

_No response_

### Describe the solution you'd like

_No response_

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with VictoriaMetricsClusterDataStorage around line 192 and trace the RestTemplate POST to the Prometheus import endpoint. Clarify the intended handling for large metric batches and resource exhaustion, then verify that metric flushing no longer causes requests to fail with “Cannot assign requested address.”

Written by the indexing model from the issue text.

Assessment

Tech stack
java, prometheus
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.