|
||
---|---|---|
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
README.md | ||
rule.yaml |
README.md
prometheus-agent
通过简单的配置,热加载运行prometheus
配置文件
- job_name: prometheus # 任务名称
type: static # 域名解析方式,可选 static / dns 默认static
metrics_path: /metrics # 采集点, 默认 /metrics
targets:
- svc-mw-prometheus-1:8080
- svc-mw-prometheus-2:8080
- job_name: pulsar
type: dns
metrics_path: /metrics
targets:
- svc-mw-pulsar:8080