You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New in Grafana 11, it is possible to nest folders for dashboards.
While this collection supports creating subfolders, it is not possible today to create a dashboard in a subfolder.
This is due to the grafana_dashboard plugin searching for folder by name in a way that only returns available folders from the root.
ISSUE TYPE
Feature Idea
COMPONENT NAME
grafana_dashboard
ADDITIONAL INFORMATION
I can see multiple ways of implementing the feature:
By providing a new folder_uid explicitly, mutually exclusive with folder. The uid can be recovered with the grafana_folder plugin.
- name: Import Grafana dashboard zabbix in a subfoldercommunity.grafana.grafana_dashboard:
grafana_url: http://grafana.company.comgrafana_api_key: "{{ grafana_api_key }}"# Allow the user to force the exact folder UID in which to create the projectfolder_uid: <folder_uid>dashboard_url: https://grafana.com/api/dashboards/6098/revisions/1/download
By providing the parent_uid off the folder in which to search, retrievable with the grafana_folder again
- name: Import Grafana dashboard zabbix in a subfoldercommunity.grafana.grafana_dashboard:
grafana_url: http://grafana.company.comgrafana_api_key: "{{ grafana_api_key }}"# Allow the user to use a subfolderfolder: publicparent_uid: <public_folder_parent_uid>dashboard_url: https://grafana.com/api/dashboards/6098/revisions/1/download
By interpreting / in the folder names as a subfolder, and searching recursively
- name: Import Grafana dashboard zabbix in a subfoldercommunity.grafana.grafana_dashboard:
grafana_url: http://grafana.company.comgrafana_api_key: "{{ grafana_api_key }}"# Allow the user to use a subfolderfolder: parent/publicdashboard_url: https://grafana.com/api/dashboards/6098/revisions/1/download
Options 1 and 2 would be backward compatible
Options 3 would probably be the easiest to use
Options 2 doesn't seem to bring much compared to option 1
I'd be happy to implement, if we agree on what option would be preferable first.
The text was updated successfully, but these errors were encountered:
Thank you for the feature request. This one probably overlaps with #388, right? You have described in much more detail, I am considering closing #388 instead.
Unfortunately, I don’t have much time to work on stuff at the moment, but maybe in the new year.
Never mind, every issue/feature request is welcome ;)
In my opinion, solution 2 should be the best, as it is also the most compatible with the API as far as I can tell.
SUMMARY
New in Grafana 11, it is possible to nest folders for dashboards.
While this collection supports creating subfolders, it is not possible today to create a dashboard in a subfolder.
This is due to the grafana_dashboard plugin searching for folder by name in a way that only returns available folders from the root.
ISSUE TYPE
COMPONENT NAME
grafana_dashboard
ADDITIONAL INFORMATION
I can see multiple ways of implementing the feature:
folder_uid
explicitly, mutually exclusive withfolder
. The uid can be recovered with thegrafana_folder
plugin.grafana_folder
again/
in the folder names as a subfolder, and searching recursivelyOptions 1 and 2 would be backward compatible
Options 3 would probably be the easiest to use
Options 2 doesn't seem to bring much compared to option 1
I'd be happy to implement, if we agree on what option would be preferable first.
The text was updated successfully, but these errors were encountered: