Migrating from Prometheus wmi_exporter to windows_exporter

As you might have seen here, wmi_exporter is to be renamed to windows_exporter in Release v0.13.0. That means every wmi_ prefix will be changed to windows_. That means for my connected Grafana instance, every query needs to be updated.

Is there a fast way to do this for every dashboard?

  1. Export the dashboards to json
  2. Using text tools to rename the wmi_ to windows_
  3. Re-check the json carefully => save
  4. Remove the old dashboard
  5. Import the json that already modified.