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

feat: add GrafanaConfig struct with a couple of useful keys #117

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

sd2k
Copy link
Collaborator

@sd2k sd2k commented Sep 19, 2024

This adds a new struct, GrafanaConfig, to the existing PluginContext struct.

The config can be used to obtain some useful fields provided by Grafana such as the app URL and service account client secret, if available.

This commit doesn't include all of the possible keys that Grafana may provide, but it does include the ones that are most likely to be useful for me. If you need more, please open an issue or PR.

This adds a new struct, `GrafanaConfig`, to the existing `PluginContext`
struct.

The config can be used to obtain some useful fields provided by Grafana
such as the app URL and service account client secret, if available.

This commit doesn't include all of the possible keys that Grafana may
provide, but it does include the ones that are most likely to be useful
for me. If you need more, please open an issue or PR.
@sd2k sd2k force-pushed the add-grafana-config branch from 0e10a3c to 8b20c7b Compare September 19, 2024 10:40
@sd2k sd2k merged commit a73e8d1 into main Sep 19, 2024
8 checks passed
@sd2k sd2k deleted the add-grafana-config branch September 19, 2024 10:44
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.

1 participant