Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

scrape_configs:
  - job_name: 'dummy1'
    file_sd_configs:
      - files:
        - targets.json

But in the case where I want to add a dynamic list of jobs, like dummy2, dummy3, etc. what would be the approach there? To add multiple targets for a job, file_sd_configs can be used. Is there any similar approach that is possible to add a dynamic job?

Thank you in advance!

question from:https://stackoverflow.com/questions/65933597/dynamically-add-job-to-a-prometheus-configuration

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
343 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...