From c98e584641917ba40d0eb23bc6c50e46b89f4234 Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Tue, 19 Jul 2022 20:01:57 +0800 Subject: [PATCH] feat(climc): k8s grafana db configuration (#14672) --- pkg/mcclient/options/k8s/cluster.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/mcclient/options/k8s/cluster.go b/pkg/mcclient/options/k8s/cluster.go index eb034cecec..2625406b1b 100644 --- a/pkg/mcclient/options/k8s/cluster.go +++ b/pkg/mcclient/options/k8s/cluster.go @@ -422,6 +422,14 @@ type ClusterComponentMonitorGrafanaOAuth struct { RoleAttributePath string `help:"Role attribute path" json:"roleAttributePath"` } +type ClusterComponentMonitorGrafanaDB struct { + Host string `help:"db host" json:"host"` + Port int `help:"db port" json:"port"` + Database string `help:"db name" json:"database"` + Username string `help:"db username" json:"username"` + Password string `help:"db password" json:"password"` +} + type ClusterComponentMonitorGrafana struct { Disable bool `help:"Disable grafana component" json:"disable"` AdminUser string `help:"Grafana admin user" default:"admin" json:"adminUser"` @@ -435,6 +443,7 @@ type ClusterComponentMonitorGrafana struct { Subpath string `help:"Grafana subpath" default:"grafana" json:"subpath"` EnableThanosQuery bool `help:"Enable thanos query datasource" json:"enableThanosQueryDataSource"` Oauth ClusterComponentMonitorGrafanaOAuth `help:"OAuth config" json:"oauth"` + Db ClusterComponentMonitorGrafanaDB `help:"db config" json:"db"` } type ObjectStoreConfig struct {