Skip to content

Conversation

@gizmoguy
Copy link
Contributor

SUMMARY

This feature allows users to rename public dashboards downloaded from the grafana website, by setting the new optional name attribute which is present on many of the other grafana modules (e.g grafana_folder, grafana_datasource).

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

grafana_dashboard

ADDITIONAL INFORMATION

See included integration test for some examples of how to use, or this simple ansible playbook:

- name: Test grafana
  hosts: localhost
  tasks:
    - name: Create dashboard with a title
      community.grafana.grafana_dashboard:
        grafana_url: "http://localhost:3000"
        uid: test-dashboard-name
        name: Custom dashboard name
        dashboard_id: "1860"
        dashboard_revision: "37"
        overwrite: "true"
        state: "present"

@gizmoguy gizmoguy requested review from rrey and seuf as code owners May 11, 2025 09:45
@codecov
Copy link

codecov bot commented May 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.24%. Comparing base (2330479) to head (e583765).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #429      +/-   ##
==========================================
+ Coverage   73.62%   74.24%   +0.62%     
==========================================
  Files          21       21              
  Lines        2328     2330       +2     
  Branches      495      496       +1     
==========================================
+ Hits         1714     1730      +16     
+ Misses        445      429      -16     
- Partials      169      171       +2     
Flag Coverage Δ
integration 72.25% <100.00%> (+0.98%) ⬆️
sanity 23.27% <0.00%> (-0.03%) ⬇️
units 66.98% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant