小编poo*_*abh的帖子

每个目标的不同刮取URL

我的应用程序的每个实例都有不同的URL.如何配置prometheus.yml以便它获取目标的路径以及主机名?

scrape_configs:
- job_name:       'example-random'

# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s

static_configs:
  - targets: ['localhost:8090','localhost:8080']
    labels:
      group: 'dummy'
Run Code Online (Sandbox Code Playgroud)

prometheus

10
推荐指数
4
解决办法
1万
查看次数

标签 统计

prometheus ×1