[Feature] 监控数据落盘本地
- Dominant language
- Java
- Stars
- 7.4k
- Forks
- 1.3k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 32
Description
### Feature Request
当使用hertzbeat-collector时,数据还是要回传到server,如果是同城异址或者是异地数据中心,监控数据回传会消耗大量流量,产生一定的费用,使用时序数据库服务VictoriaMetrics时,可以将数据落盘到本地,通过server端配置多集群读,实现统一读取,会节省很多成本。
### Is your feature request related to a problem? Please describe
_No response_
### Describe the solution you'd like
```
collector:
dispatch:
entrance:
netty:
enabled: true
identity: ${IDENTITY:}
mode: ${MODE:public}
manager-host: ${MANAGER_HOST:127.0.0.1}
manager-port: ${MANAGER_PORT:1158}
```
在collector配置中添加以下配置
```
warehouse:
store:
jpa:
enabled: false
victoria-metrics:
cluster:
enabled: true
insert:
url: http://127.0.0.1:8480
username: root
password: root
```
在collector添加写入节点,写入到本地的存储节点。
再在server的配置中,修改select节点配置,把各个collector节点的存储地址添加到select配置中。
### Describe alternatives you've considered
_No response_
### Additional context
_No response_
Contributor guide
Research direction
No files or tests are named. Start by tracing the hertzbeat-collector warehouse configuration and the server select-node configuration, focusing on the proposed warehouse.store.victoria-metrics settings. Done means collector data can be written to local VictoriaMetrics storage and the server can read across the configured collector storage nodes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases, observability-sre
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100