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 up[Prometheus] Configure --web.external-url --web.route-prefix= and having a problem: Error loading available metrics! #4925
Comments
This comment has been minimized.
This comment has been minimized.
|
@lucperkins has done a tremendous job at documenting this part and there are even ready-to-go examples. In your case, I suspect that I'm closing it for now. If you have further questions, please use our user mailing list, which you can also search. |
simonpasquier
closed this
Nov 28, 2018
This comment has been minimized.
This comment has been minimized.
|
You shouldn't use
So either use a |
This comment has been minimized.
This comment has been minimized.
|
Ok, thank you, i'll make a try. |
This comment has been minimized.
This comment has been minimized.
|
Doesn't make the things to work, still the same error and the I think I miss something. Prometheus.yml: $ cat /opt/prometheus/prometheus.yml alerting:
rule_files:
scrape_configs:
https://groups.google.com/forum/#!topic/prometheus-users/bA6rFgOLGTE |
This comment has been minimized.
This comment has been minimized.
petarkozic
commented
Nov 29, 2018
|
This works for me. I have HA setup with two alertmanager also behind Nginx with acme Let’s encrypt
Nginx:
And ywhen access, you access with: |
This comment has been minimized.
This comment has been minimized.
|
Not working for me, Thank you.
|
This comment has been minimized.
This comment has been minimized.
petarkozic
commented
Nov 29, 2018
|
You don't have anything on Web external is: |
This comment has been minimized.
This comment has been minimized.
|
Prometheus: [Service] [Install] CLI:
Nginx:
|
This comment has been minimized.
This comment has been minimized.
|
What i need to change in prometheus.yml? |
This comment has been minimized.
This comment has been minimized.
|
Nothing has to be changed in prometheus.yml. Try with |
This comment has been minimized.
This comment has been minimized.
|
Yes it seems that behavior is strange changed the --web.route-prefix=/ (unquoted):
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I've tried all the proposed configurations one by one till now... |
This comment has been minimized.
This comment has been minimized.
|
Going on Nginx server and doing a query to reach Prometheus server the output is ok:
|
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Someone has any idea about the best configuration/ simple that must work for prometheus.service and nginx? |
This comment has been minimized.
This comment has been minimized.
|
I have changed the /data directory 2 days ago as path from /data2 stopped prometheus and moved. Could be this a reason? |

fchiorascu commentedNov 28, 2018
Proposal
Use case. Why is this important?
Because is something very used and there is a need of having secure under nginx.
Bug Report
Tested all possible options from internet, the only that not gives a 404 is the below one till now.
What did you expect to see?
I'd expect to have the web interface GUI for prometheus and to be able to see the metrics, right now i have an message: Error loading available metrics!
What did you see instead? Under which circumstances?
I've tried all the possible choices:
https://www.robustperception.io/using-external-urls-and-proxies-with-prometheus
https://www.robustperception.io/external-urls-and-path-prefixes
https://prometheus.io/docs/guides/tls-encryption/#nginx-example
Environment
System information:
Linux 3.10.0-862.14.4.el7.x86_64 x86_64
Prometheus version:
2.5.0
Alertmanager version:
0.15.3
Prometheus configuration file: