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