Files
memoryweave/deploy/prometheus.yml
T
xiaowei 648e469dc9 feat: Prometheus 监控集成 — /metrics 端点 + 14 指标 + 8 告警规则
- 新增 internal/metrics/metrics.go: 14 个 Prometheus 指标
- server.go: /metrics 替换为 promhttp, 15s 后台同步
- go.mod: 新增 client_golang v1.23.2
- deploy/prometheus.yml: 抓取配置 (zhiyid:7821)
- deploy/prometheus-alerts.yml: 8 条告警规则
- deploy/prometheus.service: systemd unit
2026-05-29 02:51:46 +08:00

25 lines
489 B
YAML

# 织忆 MemoryWeave Prometheus 抓取配置
# 位置: /etc/prometheus/prometheus.yml
global:
scrape_interval: 15s
evaluation_interval: 15s
# 告警规则
rule_files:
- /etc/prometheus/rules/zhiyi.yml
scrape_configs:
- job_name: "zhiyid"
static_configs:
- targets:
- "localhost:7821"
labels:
service: "memoryweave"
instance: "deepin25"
- job_name: "prometheus"
static_configs:
- targets:
- "localhost:9090"