diff --git a/server/config.yml.templete b/server/config.yml.templete index a6848aa8f5f19d623290503967d27bce284b3de4..e4e3919ee7c33b600c41e7148c05456d0a6165a6 100644 --- a/server/config.yml.templete +++ b/server/config.yml.templete @@ -1,6 +1,5 @@ plugin_prometheus: url: "http://localhost:8090" - plugin_type: "iframe" # iframe micro-app prometheus_server: addr: "localhost:9090" http_server: diff --git a/server/config/config.go b/server/config/config.go index d51b65344b1304e3a8981ec7adf7e995f4416eba..f44d2f1461e95c43494b0d1f1859d7702372c89f 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -9,8 +9,7 @@ import ( ) type PluginPrometheus struct { - URL string `yaml:"url"` - PluginType string `yaml:"plugin_type"` + URL string `yaml:"url"` } type PrometheusServer struct { Addr string `yaml:"addr"` diff --git a/server/plugin/plugin_manager.go b/server/plugin/plugin_manager.go index 179ac39f0d43a81000be0ed88f4122803af52f33..a89c30778e485fc9b8921472c71f58391e07e2ab 100644 --- a/server/plugin/plugin_manager.go +++ b/server/plugin/plugin_manager.go @@ -15,7 +15,7 @@ func Init(plugin *config.PluginPrometheus, prometheus *config.PrometheusServer) Author: "zhanghan", Email: "zhanghan@kylinos.cn", Url: plugin.URL, - PluginType: plugin.PluginType, + PluginType: "iframe", ReverseDest: "http://" + prometheus.Addr, }