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

[grafana] set GF_UNIFIED_ALERTING_SCREENSHOTS_CAPTURE to true when imageRenderer is enabled #3537

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kefi550
Copy link

@kefi550 kefi550 commented Jan 22, 2025

Set environment variable GF_UNIFIED_ALERTING_SCREENSHOTS_CAPTURE to true when imageRenderer.enabled is true.
This will cause screenshots to be attached to alerts when imageRenderer.enabled is set to true.

As mentioned in #1556, currently screenshot is not attached to alerts even though imageRenderer.enabled is set to true.
It would be natural for alerts to have a screenshot attached when the imageRenderer is enabled.

@CLAassistant
Copy link

CLAassistant commented Jan 22, 2025

CLA assistant check
All committers have signed the CLA.

@jkroepke
Copy link
Collaborator

I feel this should be configurable. and please bump the chart version.

@kefi550 kefi550 force-pushed the set_env_screenshot branch from e0f61f0 to 2ae126d Compare January 22, 2025 13:20
@kefi550
Copy link
Author

kefi550 commented Jan 22, 2025

As you wrote, it's not good that this env variable is not configurable, so I've made this env variable configurable.
And bumped version.

Thank you for reviewing.

@jkroepke
Copy link
Collaborator

I read your message, but I think is should be configurable with default true. Sometimes, there are reasons to disable "cool" feature, for example for cost reasons.

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.

4 participants