为 ONVIF 设备增加经纬度标签以支持 Geomap

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Super User
2026-02-25 05:17:57 -05:00
parent 95a09fd9d8
commit 84d2bcc2cf
4 changed files with 35 additions and 15 deletions

View File

@@ -4,12 +4,15 @@
## 指标
- `onvif_device_up`1=可达0=不可达标签instance, location, model, device_type
- `onvif_probe_duration_seconds`:探测耗时(秒)
- `onvif_device_up`1=可达0=不可达
- 标签:`instance`, `location`, `model`, `device_type`, `lat`, `lon`
- `onvif_probe_duration_seconds`:探测耗时(秒)
- 标签同上
## 配置
-**config/onvif-targets.json** 读取设备列表(与 `targets.csv` 中 onvif 行一致,由 `config/update-configs.sh` 生成)。
- 支持字段:`device_type`, `model`, `location`, `username`, `password`, `onvif_port`, `lat`, `lon`
- 环境变量:`TARGETS_FILE`(默认 `/config/targets.json`)、`EXPORTER_PORT`(默认 9600
## 构建与运行