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

Black metrics page after setup? #14

Open
MiralDesai opened this issue Mar 5, 2019 · 0 comments
Open

Black metrics page after setup? #14

MiralDesai opened this issue Mar 5, 2019 · 0 comments

Comments

@MiralDesai
Copy link

MiralDesai commented Mar 5, 2019

Most likely going to a configuration issue but not sure what the resolution is. So I'm getting a blank page when I try and hit /metrics/. The /metrics page is returning 200.

This is what I see in the logs on startup of phobos:

INFO -- Phobos: <Hash> {:message=>"PhobosPrometheus configured"}
INFO  -- Phobos : <Hash> {:message=>"PhobosPrometheus subscribed"}

My initial thought is it's because I am running a Sinatra app, and booting Phobos independently. So the metrics call is unable to retrieve the data it requires? Nothing else in the logs to suggest anything. The main app is being booted first, then phobos.

Stuck a binding.pry right after the following bit of code:

Phobos.configure("config/phobos.yml")
PhobosPrometheus.configure("config/phobos_prometheus.yml")
PhobosPrometheus.subscribe

Was able to validate that PhobosPrometheus.config and PhobosPrometheus.metrics returned data.

Any chance you guys have come across this before or know a possible way to help debug?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant