jakubplichta / grafana-dashboard-builder

Generate Grafana dashboards with YAML
Apache License 2.0
147 stars 42 forks source link

Add folder id at dashboard level. #157

Closed trampfox closed 5 years ago

trampfox commented 5 years ago

This PR adds the folder_id field in the YAML of a dashboard definition.

The field allows to specify, at dashboard level, a folder id where the dashboard has to be uploaded to. Below an example of a YAML file:

- name: Dashboard
  dashboard:
    folderId: 866
    title: 'A Dashboard'

resolves #156

jakubplichta commented 5 years ago

Hey @trampfox, thanks for contribution! Can you please rename new field to folderId? I try to use same names Grafana API uses to make transition and processing easier.

And ideally squash your commits into one final one.

trampfox commented 5 years ago

Sure @jakubplichta, I'll rename it

manueligno78 commented 5 years ago

This potentially solves https://github.com/jakubplichta/grafana-dashboard-builder/issues/156 Great work!

trampfox commented 5 years ago

@jakubplichta done ;)