小编Krz*_*ski的帖子

Prometheus-在static_configs中添加目标特定的标签

我的工作定义如下:

  - job_name: 'test-name'
    static_configs:
      - targets: [ '192.168.1.1:9100', '192.168.1.1:9101', '192.168.1.1:9102' ]
        labels:
          group: 'development'
Run Code Online (Sandbox Code Playgroud)

有什么办法用标签注释目标?例如,我想将“ service-1”标签添加到“ 192.168.1.1:9100”,将“ service-2”标签添加到“ 192.168.1.1:9101”等。

prometheus

7
推荐指数
2
解决办法
9682
查看次数

标签 统计

prometheus ×1