Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAurora style job names #1602
Comments
This comment has been minimized.
This comment has been minimized.
|
In general we can't change our data model to match the permitted characters of every possible system, it's pretty much fixed by now. There's nothing stopping you using something with a slash as a value for a job label, but you'll need to do it via relabelling. I would generally recommend sticking to valid label names as job labels, as we might (might) have an easier way to use them in the future that'll only work for job names which follow that constraint. |
brian-brazil
added
the
kind/enhancement
label
Apr 28, 2016
This comment has been minimized.
This comment has been minimized.
|
So...closing. With your advise, and digging further into my issue of monitoring the same job in QA vs PROD on a shared execution cluster I discovered that relabeling was the right solution here. I have a Prometheus scrape job setup per Aurora job (ZooKeeper ServerSet) where I'm using relabeling to add qa/prod labels. Of course this needs unique job names in the Prometheus configuration to parse correctly. So I made the This did cause a lot of issues especially with the prometheus jobs I was monitoring. Relabeling |
jjneely
closed this
Apr 28, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
jjneely commentedApr 28, 2016
Would folks consider adding
/(forward slash) to the JobName regular expression? This would allow Aurora-style job names to be used as scrape target job names without mangling.https://github.com/prometheus/prometheus/blob/master/config/config.go#L31