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

[BUG] gdg backup #279

Closed
LuckySB opened this issue Jun 25, 2024 · 2 comments
Closed

[BUG] gdg backup #279

LuckySB opened this issue Jun 25, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@LuckySB
Copy link

LuckySB commented Jun 25, 2024

gdg backup dash download get dashboards only from folder General

Describe the bug
A clear and concise description of what the bug is. If applicable and possible the JSON of dashboard or datasource that is causing issues with credentials removed would be helpful.

To Reproduce
Create dashboard1 in folder General
Create new folder in grafana, create dashboard2 in this new folder

gdg backup dash list - show dashboard only in folder General
gdg backup dash download - download dashboard only from folder Geneatl

to download dashboard from new folder must be set -f
gdg backup dash download -f 'new folder'

Expected behavior

gdg backup dash download - should be download dashboards from all folder

Desktop (please complete the following information):

  • GDG Version: 0.6.0
  • Grafana Version: 9.5.2
  • Configuration for Importer
context_name: main

contexts:
  main:
    url: https://grafana
    token: "glsa_...."
    output_path: "myFolder"
@LuckySB LuckySB added the bug Something isn't working label Jun 25, 2024
@safaci2000
Copy link
Contributor

safaci2000 commented Jun 25, 2024

That's not the expected behavior. Default is to ONLY download from the folders that were configured, If none are configured the default is to only list dashboards under "General". the -f flag allows you further filter down to only operate on a given folder.

Also, see the FAQ: https://software.es.net/gdg/docs/gdg/frequently-asked-questions/#why-does-gdg-not-list-all-my-dashboards

If you want to download files from ALL folders and ignore any filtering, you can set ignore_dashboard_filters

    filter_override:
      ignore_dashboard_filters: false # When set to true all Watched filtered folders will be ignored and ALL folders will be acted on

Also, if the -f works, to download data from the new folder, that IS a bug, it shouldn't allow you to do that. The -f is a filter on the imported folders. It's not intended to allow you to fetch folders that are not white listed unless the ignore_dashboard_filter is set.

@LuckySB
Copy link
Author

LuckySB commented Jun 27, 2024

senks

@LuckySB LuckySB closed this as completed Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants