diff --git a/conf/config.go b/conf/config.go index 58c1b28abeb3993093402256c749710f9dde1f83..e2328b9be426f1ef0093d5fc3b2dfa0ddab8208a 100644 --- a/conf/config.go +++ b/conf/config.go @@ -13,8 +13,7 @@ type HttpConfig struct { } type GrafanaConfig struct { - Addr string `yaml:"addr"` - PluginType string `yaml:"plugin_type"` + Addr string `yaml:"addr"` } type ServerConfig struct { diff --git a/config.yaml.templete b/config.yaml.templete index d3819623f24c73fc414b8aaa1dbc7bb205d94e9d..d2d1a238c9fec58eb47cbd03ca61389acc06bc75 100644 --- a/config.yaml.templete +++ b/config.yaml.templete @@ -2,7 +2,6 @@ http_server: addr: "localhost:9999" grafana_server: addr: "localhost:3000" - plugin_type: "iframe" log: level: debug driver: file # 可选stdout和file。stdout:输出到终端控制台;file:输出到path下的指定文件。 diff --git a/main.go b/main.go index 3429dec66cd1e8322aff601f3fb7b78f1857aaea..a4f7c2624d4e09707eafc5ad9a264155680286d5 100644 --- a/main.go +++ b/main.go @@ -34,7 +34,7 @@ func main() { PluginInfo.Url = "http://" + conf.Config().Http.Addr PluginInfo.ReverseDest = "http://" + conf.Config().Grafana.Addr - PluginInfo.PluginType = conf.Config().Grafana.PluginType + PluginInfo.PluginType = "iframe" server := gin.Default()