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 upJobs/insrtances documentation disambiguity #957
Comments
This comment has been minimized.
This comment has been minimized.
|
Relevant documentation: http://prometheus.io/docs/concepts/jobs_instances/ |
This comment has been minimized.
This comment has been minimized.
|
Thank you! This indeed changed in 0.15.0 and it wasn't updated in the docs yet. Here's the PR to fix it: prometheus/docs#148 |
This comment has been minimized.
This comment has been minimized.
|
After thinking it over, I think I'd prefer it be the other way around (i.e. that Prometheus doesn't mess with the existing keys); I have a proxy that ingests the runtime data for a bunch of heroku-machines (see https://github.com/msiebuhr/lumbermill/tree/prometheus). So I have a whole lot of infrastructure that is exposed through a proxy, which means it will (currently) end up like this in prometheus:
Grouping by |
This comment has been minimized.
This comment has been minimized.
|
I'm quite curious as to why Prometheus ended up with this behaviour. Any pointers? |
This comment has been minimized.
This comment has been minimized.
|
Basically if one rogue job starts exporting metrics with labels owned by something else, this keeps it from being a problem. |
This comment has been minimized.
This comment has been minimized.
|
But you could catch that just as well with just adding tags under For now, I've "fixed" it by adding (I have a nagging feeling I'm missing some corner-case that disproves my idea...) |
This comment has been minimized.
This comment has been minimized.
Unless that's what the rogue job is exporting. We have to design things with all possible reasonable use-cases in mind, and that includes where the person running the Prometheus doesn't trust those writing the monitored jobs not to mess up the labels. |
This comment has been minimized.
This comment has been minimized.
|
@msiebuhr There is also the new |
This comment has been minimized.
This comment has been minimized.
|
So (haven't looked at the code) the current behaviour if I believe you'd get the same security by plainly setting |
This comment has been minimized.
This comment has been minimized.
|
@beorn7 Great! |
This comment has been minimized.
This comment has been minimized.
|
@msiebuhr The prefix is |
This comment has been minimized.
This comment has been minimized.
|
FTR: All documented under http://prometheus.io/docs/operating/configuration/ and http://prometheus.io/docs/operating/federation/ now btw. |
This comment has been minimized.
This comment has been minimized.
|
Anything missing here still or can this be closed? |
This comment has been minimized.
This comment has been minimized.
|
Looking under federation for how to piece together my Heroku-proxy thingie (indeed, I only looked at the page, now you linked to it). Besides that nitpick, |
msiebuhr
closed this
Aug 5, 2015
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. |
msiebuhr commentedAug 3, 2015
When submitting data with
joband/orinstance-tags set, sayfoo{job="a.herokuapp.com",instance="b"}, the docs say it will add new keys withexports_-prefix.But instead it renames the existing keys to something
exports_jobandexports_instance, which isn't really useful, as grouping metrics from different upstreams by these keys would group a lot of data by the aggregator's name instead of the original job/instance names.