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

add basic prometheus metrics with prometheus_flask_exporter #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rbelnap
Copy link

@rbelnap rbelnap commented Aug 1, 2022

I have a need to monitor the gateway with our existing prometheus infrastructure, this PR just adds generic monitoring for flask, which will work for basic path metrics and up/down monitoring. I plan on adding more useful metrics (cache status and usage, for example) but wanted to gauge interest with a PR early.

@codecov-commenter
Copy link

Codecov Report

Merging #72 (d500889) into master (390fe24) will increase coverage by 0.18%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #72      +/-   ##
==========================================
+ Coverage   62.59%   62.78%   +0.18%     
==========================================
  Files          21       21              
  Lines         794      798       +4     
  Branches      113      113              
==========================================
+ Hits          497      501       +4     
  Misses        280      280              
  Partials       17       17              
Flag Coverage Δ
unittests 62.78% <100.00%> (+0.18%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cellxgene_gateway/gateway.py 37.41% <100.00%> (+1.65%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@alokito
Copy link
Member

alokito commented Aug 4, 2022

Hi @rbelnap ! Thank you for the suggestion. This would be the first "non-functional" dependency added to cellxgene-gateway which gives me some pause. However, it does look really cool, and I don't think there is any competing standard for observability in the python world. Before we go down this path, can you think of a less intrusive way, perhaps that does not involve modifying gateway.py?

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

Successfully merging this pull request may close these issues.

3 participants