LibraryElements: Creates usage stats for panels and variables (#34476) (#34555)

* LibraryPanels: Adds usage collection

* Refactor: renames Panel and Variable consts

* Chore: initialize stats

* Refactor: moves library element migrations to migration namespace

(cherry picked from commit 7204a64717)

Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2021-05-24 05:35:35 +01:00
committed by GitHub
parent 34a1621a5c
commit 7f919c0e55
22 changed files with 174 additions and 126 deletions
@@ -40,6 +40,7 @@ func AddMigrations(mg *Migrator) {
addShortURLMigrations(mg)
ualert.AddTablesMigrations(mg)
ualert.AddDashAlertMigration(mg)
addLibraryElementsMigrations(mg)
}
func addMigrationLogMigrations(mg *Migrator) {