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 upKubernetes SD example does not include required 'role' #1823
Comments
This comment has been minimized.
This comment has been minimized.
|
Good catch. Fancy sending in a PR to fix? |
This comment has been minimized.
This comment has been minimized.
|
Heh - there was a reason I was looking for the example - might take me a week or two before I have the time to read and understand the manual - it's pretty dense prose ... :-) |
This comment has been minimized.
This comment has been minimized.
SleepyBrett
commented
Jul 20, 2016
•
|
Yeah this broke my install as well. So I'm reading your documentation and trying to reconcile it with the example config (which is almost identical to my deployed config at this point). It's not at all clear which role I should chose for each current scrape job you have defined. For instance the first job (kubernetes-cluster) claims to scrape for the cluster components including api server and node.. so which role, apiserver or node? The very next scrape claims to scrape service endpoints.. so role: service or endpoint? There is no documentation that I can find on what each value of role does other than "it has to be one of these values". So maybe someone in the know can update this: https://prometheus.io/docs/operating/configuration/ |
This comment has been minimized.
This comment has been minimized.
SleepyBrett
commented
Jul 21, 2016
|
Well I was just about to build a pull request around my first stab at a config and it looks like you guys have a new config example on master. thanks @zoidbergwill |
This comment has been minimized.
This comment has been minimized.
|
Whoops, didn't even see this issue, or I would've referenced it in my PR. Fortunately the great people that reviewed my PR managed to help me figure out what exactly needed to be updated. |
This comment has been minimized.
This comment has been minimized.
|
Fixed by #1840 |
jimmidyson
closed this
Jul 22, 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. |
karora commentedJul 19, 2016
From the 1.0 release notes, as well as from reading the documentation here:
https://github.com/prometheus/docs/blob/master/content/docs/operating/configuration.md#kubernetes_sd_config
it appears that a
roleofendpoint,service,node,pod,containerorapiservermust be present in each kubernetes_sd_config, however the example does not yet seem to be updated to include these.https://github.com/prometheus/prometheus/blob/master/documentation/examples/prometheus-kubernetes.yml