Versions in this module Expand all Collapse all v1 v1.0.0 Jan 28, 2024 Changes in this version + type DashboardConfig struct + ClusterName string + DeployDir string + func NewDashboardConfig(cluster, deployDir string) *DashboardConfig + func (c *DashboardConfig) Config() ([]byte, error) + func (c *DashboardConfig) ConfigToFile(file string) error + func (c *DashboardConfig) ConfigWithTemplate(tpl string) ([]byte, error) + func (c *DashboardConfig) DashboardToFile(file string, tplFile string) error + func (c *DashboardConfig) ReadDashboardsDir() ([]fs.DirEntry, error) + type DatasourceConfig struct + ClusterName string + URL string + func (c *DatasourceConfig) ConfigToFile(file string) error + type GrafanaConfig struct + AnonymousEnable bool + DefaultTheme string + DeployDir string + Domain string + IP string + OrgName string + OrgRole string + Password string + Port uint64 + RootURL string + Username string + func NewGrafanaConfig(ip, deployDir string) *GrafanaConfig + func (c *GrafanaConfig) Config() ([]byte, error) + func (c *GrafanaConfig) ConfigToFile(file string) error + func (c *GrafanaConfig) ConfigWithTemplate(tpl string) ([]byte, error) + func (c *GrafanaConfig) WithAnonymousenable(anonymousEnable bool) *GrafanaConfig + func (c *GrafanaConfig) WithDefaultTheme(defaultTheme string) *GrafanaConfig + func (c *GrafanaConfig) WithDomain(domain string) *GrafanaConfig + func (c *GrafanaConfig) WithOrgName(orgName string) *GrafanaConfig + func (c *GrafanaConfig) WithOrgRole(orgRole string) *GrafanaConfig + func (c *GrafanaConfig) WithPassword(passwd string) *GrafanaConfig + func (c *GrafanaConfig) WithPort(port uint64) *GrafanaConfig + func (c *GrafanaConfig) WithRootURL(rootURL string) *GrafanaConfig + func (c *GrafanaConfig) WithUsername(user string) *GrafanaConfig + type TsMonitorConfig struct + DataPath string + ErrorLogPath string + Host string + LoggingPath string + MetricPath string + MonitorAddr string + MonitorDB string + ProcessName string + TLSEnabled bool + WALPath string + func (c *TsMonitorConfig) Config() ([]byte, error) + func (c *TsMonitorConfig) ConfigToFile(file string) error + func (c *TsMonitorConfig) ConfigWithTemplate(tpl string) ([]byte, error)