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

Establish multiple providers #350

Merged
merged 2 commits into from Feb 26, 2024

Conversation

malcolmholmes
Copy link
Collaborator

Grizzly currently has three "endpoints" in one provider: Grafana, Cortex/Mimir and Synthetic Monitoring. Each of these
has its own authentication and configuration. Really, they should be separate providers.

This PR resolves that.

Also, whilst in previous PRs we have removed some use of globals, still various places can call config.CurrentContext()
to pull in config, anywhere in the code.

This PR prevents this happening. It makes sure that providers have their configuration injected in at creation so that they
don't need to pull it in via global functions.

@malcolmholmes malcolmholmes requested a review from a team as a code owner February 23, 2024 18:05
@malcolmholmes malcolmholmes force-pushed the malcolmholmes/avoid-current-context-calls branch from 38f7cc1 to fd9a23a Compare February 26, 2024 09:39
Copy link
Member

@julienduchesne julienduchesne left a comment

Choose a reason for hiding this comment

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

👍

@malcolmholmes malcolmholmes merged commit e864108 into main Feb 26, 2024
7 checks passed
@malcolmholmes malcolmholmes deleted the malcolmholmes/avoid-current-context-calls branch February 26, 2024 15:37
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.

None yet

2 participants