Prometheus - add target specific label in static_configs

后端 未结 5 536
迷失自我
迷失自我 2021-02-04 00:35

I have job definition as follows:

  - job_name: \'test-name\'
    static_configs:
      - targets: [ \'192.168.1.1:9100\', \'192.168.1.1:9101\', \'192.168.1.1:91         


        
5条回答
  •  有刺的猬
    2021-02-04 01:10

    You can use File Based ServiceDiscovery to achieve this. See this Blog Post for more details.

提交回复
热议问题