Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove duplicate exported scrape job name in file name
Between #435 and #450, the file path for the exported job names was changed to use underscores instead of colons. That's fine, except that, in the end, the actual filename had a superfluous `$scrape_job_name` parameter added. Taking the Apache exporter as an example, I used to have: /etc/prometheus/file_sd_config.d/apache_perdulce.torproject.org:9117.yaml I now have: /etc/prometheus/file_sd_config.d/apache_apache_eugeni.torproject.org_9117.yaml That still works of course: the old file is removed and the new one is picked up, but it does look silly and needlessly redundant. I should note that this might mean some clashes between jobs, if the same host/port combination is scraped by multiple jobs on the Prometheus server. I have no idea if that's a valid use case, but I should point out that, if it is, then the `job_name` parameter should just be removed and instead the resource name should forcibly include the job name, instead of enforcing this weird duplication. In other words, maybe this is also an API breaking change that should warrant a changelog entry, but I'll let my co-maintainers be the judges of this.
- Loading branch information