Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Prometheus] Kindly could you detail better: --web.external-url --web.route-prefix nginx #4930

Closed
fchiorascu opened this Issue Nov 29, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@fchiorascu
Copy link

fchiorascu commented Nov 29, 2018

  • Proposal
    Use case. Why is this important?
    It's a good practice to have something well defined, I'we noticed around internet multiple configurations ~ 15 different ones, maybe will be best to detail how is recommended.

Because is confusing and I think there is a bug in new version of prometheus 2.5.0.
Or is something related to migration, I've moved the data and put it again in the new partition created and restarted prometheus.

It's a matter of selinux context?
# ls -ldZ /data/prometheus
drwxr-xr-x. prometheus prometheus unconfined_u:object_r:var_t:s0   /data/prometheus
# ls -ldZ /opt/prometheus
drwxr-xr-x. prometheus prometheus unconfined_u:object_r:usr_t:s0   /opt/prometheus
# ls -ldZ /opt/prometheus/prometheus
-rwxr-xr-x. prometheus prometheus unconfined_u:object_r:usr_t:s0   /opt/prometheus/prometheus

  • I already tried:
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
https://groups.google.com/forum/#!topic/prometheus-users/bA6rFgOLGTE
https://github.com/prometheus/prometheus/issues/1583
etc...

-Bug Report
When going to: https://prometheus1monitoring/prometheus >> Graph >> Error loading available metrics!

  • What did you expect to see?
    To have the possibility to make a query for metrics.
    If i try to make a tunnel it's working fine without using nginx.

  • What did you see instead? Under which circumstances?
    I've tried all the possible choices:
    Error loading available metrics!

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
@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Nov 30, 2018

Thanks for your report. It looks as if this is actually a question about usage and not development.

To make your question, and all replies, easier to find, we suggest you move this over to our user mailing list, which you can also search. If you prefer more interactive help, join or our IRC channel, #prometheus on irc.freenode.net. Please be aware that our IRC channel has no logs, is not searchable, and that people might not answer quickly if they are busy or asleep. If in doubt, you should choose the mailing list.

Once your questions have been answered, please add a short line pointing to relevant replies in case anyone stumbles here via a search engine in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.