You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now it is only possible to disable categories of tools which is
tedious for users who want to only use one or two categories, and means
that new tools added in the future will automatically show up. Add the
ability to also set an allow-list of tools that can then be overridden
using the --disable-<category> flags.
// disabledTools indicates whether each category of tools should be disabled.
25
32
typedisabledToolsstruct {
33
+
enabledToolsstring
34
+
26
35
search, datasource, incident,
27
36
prometheus, loki, alerting,
28
37
dashboard, oncallbool
@@ -35,6 +44,8 @@ type grafanaConfig struct {
35
44
}
36
45
37
46
func (dt*disabledTools) addFlags() {
47
+
flag.StringVar(&dt.enabledTools, "enabled-tools", "search,datasource,incident,prometheus,loki,alerting,dashboard,oncall", "A comma separated list of tools enabled for this server. Can be overwritten entirely or by disabling specific components, e.g. --disable-search.")
0 commit comments