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 upprometheus configuration for kubernetes from example folder doesn't work with 1.3 #2147
Comments
This comment has been minimized.
This comment has been minimized.
|
@vorozhko thanks for reporting, we have already noticed this and will shortly adapt the config. Sorry for the inconvenience. |
This comment has been minimized.
This comment has been minimized.
|
@brancz I've got a config ready to submit unless you're doing it? |
This comment has been minimized.
This comment has been minimized.
|
@jimmidyson go for it, I might have some discussion points, but I'm not done. |
jimmidyson
referenced this issue
Nov 2, 2016
Merged
Kubernetes SD: Update config for discovery in 1.3 #2148
This comment has been minimized.
This comment has been minimized.
widgetpl
commented
Nov 3, 2016
|
config from PR dosent work for me
|
This comment has been minimized.
This comment has been minimized.
|
Hmm those lines don't seem to relate to anything changed in the PR updated config (https://github.com/jimmidyson/prometheus/blob/da23543f29e51701b4e8ec0ffc1912e3a530c5d1/documentation/examples/prometheus-kubernetes.yml). Are the line numbers accurate in the parsing I wonder? |
This comment has been minimized.
This comment has been minimized.
widgetpl
commented
Nov 3, 2016
•
|
i have removed comments from config so it looks like
sorry for that. So the lines are:
|
This comment has been minimized.
This comment has been minimized.
|
No worries! Can you paste it into a gist to more easily view line numbers? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Looks like you've dropped the important |
This comment has been minimized.
This comment has been minimized.
widgetpl
commented
Nov 3, 2016
•
|
yes you are right probably during removing preceding
i have updated Gist ok i see that it is |
This comment has been minimized.
This comment has been minimized.
|
To follow the naming of the kubernetes API Objects it is now called |
This comment has been minimized.
This comment has been minimized.
|
Yeah |
This comment has been minimized.
This comment has been minimized.
widgetpl
commented
Nov 3, 2016
|
looks like it is working now, thanks guys for helping. |
fabxc
closed this
in
#2148
Nov 3, 2016
eformat
added a commit
to eformat/prometheus-ose
that referenced
this issue
Nov 10, 2016
noelo
added a commit
to noelo/prometheus-ose
that referenced
this issue
Nov 11, 2016
This comment has been minimized.
This comment has been minimized.
loguido
commented
Nov 17, 2016
|
My prometheus server is outside kubernetes cluster. With version 1.3 i cannot use apiserver option anymore. I've not understood how can i connect to apiserver... |
This comment has been minimized.
This comment has been minimized.
|
@loguido See the example config at https://github.com/prometheus/prometheus/blob/master/documentation/examples/prometheus-kubernetes.yml#L8. The example config wasn't updated when SD options changed unfortunately, but config in master works fine with 1.3+. |
This comment has been minimized.
This comment has been minimized.
loguido
commented
Nov 17, 2016
|
Thank you @jimmidyson, but as far as i can see with this config i cannot contact any kubernetes api server because my prometheus is not inside kubernetes cluster. |
This comment has been minimized.
This comment has been minimized.
|
Please check the configuration of the documentation: On Thu, Nov 17, 2016 at 12:32 PM loguido notifications@github.com wrote:
|
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. |
vorozhko commentedNov 2, 2016
What did you do?
Upgraded prometheus to 1.3 in our GKE cluster.
What did you expect to see?
Working prometheus.
What did you see instead? Under which circumstances?
First I have seen:
time="2016-11-02T13:55:23Z" level=error msg="Error loading config: couldn't load configuration (-config.file=/etc/prometheus/prometheus.yml): Unknown Kubernetes SD role "apiserver"" source="main.go:149"
After I deleted the whole job-name with apiserver role I got following:
time="2016-11-02T14:24:20Z" level=error msg="Error loading config: couldn't load configuration (-config.file=/etc/prometheus/prometheus.yml): unknown fields in kubernetes_sd_config: in_cluster, api_servers" source="main.go:149
Environment
Prometheus container v1.3.0 in GKE cluster.
System information:
Prometheus version:
1.3
Prometheus configuration file: