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

Default metrics disappeared #133

Open
kr886q opened this issue May 13, 2022 · 3 comments
Open

Default metrics disappeared #133

kr886q opened this issue May 13, 2022 · 3 comments

Comments

@kr886q
Copy link

kr886q commented May 13, 2022

I had it setup and connected to prometheus and saw all of the default metrics for 6 different services I am running. I stopped and then started one of the services, and now the only metric that shows up is flask_exporter_info.

I looked in the logs of the services and havent seen anything. Also flask_exporter_info is reporting 1

not sure where else to look to debug.

@kr886q
Copy link
Author

kr886q commented May 13, 2022

flask_http_request_duration_seconds_bucket{le="0.005",method="GET",path="/favicon.ico",status="404"} 3.0

before it was saying status=200, and not sure where this favicon.ico path is coming from

@kr886q
Copy link
Author

kr886q commented May 13, 2022

Okay so endpoints only appear AFTER using them. As for the favicon path I have no idea where thats coming from. Could be the package it self or a blueprint or somewhere else i haven't considered

@rycus86
Copy link
Owner

rycus86 commented May 14, 2022

Hey @kr886q - yes, the metrics are not initialized by itself, they appear when you increment a counter, or a histogram receives a measurement, etc.

As for the favicon path I have no idea where thats coming from.

That's usually something the browsers request, perhaps you opened one of the endpoints in the browser to check it? (maybe the metrics endpoint?)

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

2 participants