-
Notifications
You must be signed in to change notification settings - Fork 10
feat: reusable component to download kibana dashboards #388
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
Conversation
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new reusable GitHub Action component to download Kibana dashboards as PNG files. The feature helps consolidate and simplify existing scripts across the Elastic organization that perform similar functionality.
Key Changes:
- New composite action that generates and downloads Kibana dashboard screenshots via Kibana's reporting API
- Includes polling mechanism with retry logic and configurable parameters for dashboard rendering
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| download-kibana-dashboard/run.sh | Core bash script implementing the Kibana API interaction and polling logic |
| download-kibana-dashboard/action.yml | GitHub Action definition with input parameters and composite action steps |
| download-kibana-dashboard/README.md | Documentation for the new action including usage examples |
| .github/workflows/test-download-kibana-dashboard.yml | Test workflow to validate the action using OIDC and real Kibana cluster |
| .github/workflows/no-test.yml | Updated exclusion list to include the new action directory |
| name: 'download-kibana-dashboard' | ||
| description: | | ||
| An Action to download a Kibana dashboard in png. |
Copilot
AI
Oct 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected spelling of 'compoonent' to 'component' (note: issue is in PR title, but documenting here as it relates to this action).
| kibana-host: ${{ env.KIBANA_HOST }} | ||
| kibana-user: ${{ env.KIBANA_USERNAME }} | ||
| kibana-password: ${{ env.KIBANA_PASSWORD }} | ||
| dashboard-id: "2c0daa02-35e8-4dd3-aa0a-6a24a48d857d" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created this dashboard manually
fr4nc1sc0-r4m0n
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Superseedes #387
What
New feature to download a Kibana Dashboard in a png format
Why
This should help to simplify our scripts:
I decided to avoid running e2e tests, but using it directly.