prometheus-agent/README.md
2024-05-26 16:29:11 +08:00

19 lines
433 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## prometheus-agent
> 通过简单的配置热加载运行prometheus
### 配置文件
```yaml
- 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
```