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

Configuration to scrape repository metrics #381

Merged
merged 2 commits into from
Mar 30, 2023

Conversation

psschwei
Copy link
Collaborator

Summary

Configuration to allow prometheus to scrape metrics from the repository

prereq for #368

Details and comments

Added a dependency on django-allow-cidr so that we could configure ALLOWED_HOSTS to be internal services (i.e. from a 10. address). Also added a repository: "true" label for the repository pod(s) in order for the serviceMonitor to be able to scrape them.

Copy link
Member

@Tansito Tansito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @psschwei I just left one doubt. Btw and just to confirm but this configuration that you are doing will need to be replicated in the gateway I assume. I created an issue about that: #374

@psschwei
Copy link
Collaborator Author

this configuration that you are doing will need to be replicated in the gateway I assume

yeah, I think so

One thing I saw is that we're running the Django apps in debug mode (well, the repository is... didn't check the gateway). Debug mode will add localhost to the allowed hosts if allowed hosts is empty, which may be how it's accessible now in docker compose. But we should turn off debug mode in production, which means we'd have to probably give the allowed hosts a think or two...

@Tansito
Copy link
Member

Tansito commented Mar 30, 2023

One thing I saw is that we're running the Django apps in debug mode

Yes for repository and gateway. I didn't spend too much time yet preparing both applications for productions because including DEBUG we have the issue #315 too so I was thinking that they are stuff that it will happen at the same time (I can be wrong).

@Tansito Tansito self-requested a review March 30, 2023 13:56
Signed-off-by: Paul S. Schweigert <[email protected]>
Copy link
Member

@Tansito Tansito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @psschwei 🙏

@psschwei psschwei merged commit 9fe05e9 into Qiskit:main Mar 30, 2023
@psschwei psschwei deleted the repo-dashboard branch March 30, 2023 14:28
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