prometheus的agent,主要用于生成配置文件
Go to file
2024-05-26 16:29:11 +08:00
src first commit 2024-05-26 16:29:11 +08:00
.gitignore first commit 2024-05-26 16:29:11 +08:00
Cargo.lock first commit 2024-05-26 16:29:11 +08:00
Cargo.toml first commit 2024-05-26 16:29:11 +08:00
README.md first commit 2024-05-26 16:29:11 +08:00
rule.yaml first commit 2024-05-26 16:29:11 +08:00

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