Skip to content

lytalk/grafana-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

grafana-tools

Grafana 运维工具集,用于数据库迁移和数据源密钥解密场景。

工具列表

将 Grafana 从 SQLite 迁移到 MySQL 的转换工具,专为 Grafana 12 设计。

  • 支持 Grafana v12.3.x(SQLite)→ v12.4.0+(MySQL)
  • 自动处理 Grafana 12 新引入的 resource 表(Kubernetes 存储格式)
  • 内置 MySQL 5.7 兼容补丁

核心脚本sqlite_to_mysql_grafana12.py

python3 sqlite_to_mysql_grafana12.py grafana.db grafana_mysql_v12.sql

从 Grafana SQLite 数据库中解密数据源敏感信息(用户名、密码等)的工具。

  • 同时支持传统加密格式(Legacy)和信封加密格式(Envelope)
  • 与 Grafana 服务端解密逻辑完全一致
  • 适用于迁移、备份或排查数据源配置

核心脚本decrypt_datasource_secrets_from_db.py

GRAFANA_DB=/path/to/grafana.db python3 decrypt_datasource_secrets_from_db.py

About

grafana相关工具

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages