Skip to content

Black metrics page after setup? #14

@MiralDesai

Description

@MiralDesai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions