Documentation ¶
Index ¶
- func ChartStatusCheck(clusterName string, namespace string, chartName string) (status string, err error)
- func GetKubeClient(namespace, context string) (*kube.KubeConfig, error)
- type Bucketweb
- type Client
- type Cluster
- type ClusterSpec
- type Compactor
- type Config
- type Data
- type Grafana
- type ObjStoreConfig
- type Objspec
- type Prometheus
- func (p Prometheus) GetTypeName()
- func (prom *Prometheus) InstallClient(clusterName string, receiveEndpoint []string, debug bool) (string, error)
- func (prom *Prometheus) PreflightChecks(clusterConfig *Config, clusterName string) ([]string, error)
- func (prom *Prometheus) UninstallClient(clusterName string) error
- type Querier
- type Querierfe
- type Receiver
- type Ruler
- type Setup
- type Thanos
- type Trace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChartStatusCheck ¶
func GetKubeClient ¶
func GetKubeClient(namespace, context string) (*kube.KubeConfig, error)
Types ¶
type Client ¶
type Client interface { PreflightChecks(c *Config, clusterName string) ([]string, error) InstallClient(clusterName string, targets []string, debug bool) (string, error) UninstallClient(clusterName string) error }
client to Preflight checks and installing tools on cluster
func NewPromClient ¶
func NewThanosClient ¶
type ClusterSpec ¶
type ClusterSpec interface {
GetTypeName()
}
type Compactor ¶
type Compactor struct { Name string `yaml:"name"` Downsampling bool `yaml:"downsampling"` Deduplication bool `yaml:"deduplication"` RetentionResolutionRaw string `yaml:"retentionResolutionRaw"` RetentionResolution5m string `yaml:"retentionResolution5m"` RetentionResolution1h string `yaml:"retentionResolution1h"` }
Compactor
type Config ¶
type Config struct { Clusters []Cluster `yaml:"clusters"` ObjStoreConfigslist []ObjStoreConfig `yaml:"objStoreConfigslist"` Order int `yaml:",omitempty"` //if 1 then mode is sidecar else mode is receiver }
KriusConfig
type ObjStoreConfig ¶
type ObjStoreConfig struct { Bucketweb Bucketweb `yaml:"bucketweb"` Name string `yaml:"name"` Type string `yaml:"type"` Config map[string]interface{} `yaml:"config"` }
Objstoresonfiglist
type Prometheus ¶
type Prometheus struct { Install bool `yaml:"install"` Name string `yaml:"name"` Namespace string `yaml:"namespace"` Mode string `yaml:"mode"` ReceiveReference string `yaml:"receiveReference"` RemoteWriteURL []string `yaml:"remoteWriteURL"` ObjStoreConfig string `yaml:"objStoreConfig"` }
Prometheus
func (Prometheus) GetTypeName ¶
func (p Prometheus) GetTypeName()
any value which implements GetTypeName is also of type Clustter Spec interface
func (*Prometheus) InstallClient ¶
func (*Prometheus) PreflightChecks ¶
func (prom *Prometheus) PreflightChecks(clusterConfig *Config, clusterName string) ([]string, error)
func (*Prometheus) UninstallClient ¶
func (prom *Prometheus) UninstallClient(clusterName string) error
type Querier ¶
type Querier struct { Targets []string `yaml:"targets,omitempty"` DedupEnbaled bool `yaml:"dedupEnbaled"` AutoDownsample bool `yaml:"autoDownSample"` PartialResponse bool `yaml:"partialResponse"` Name string `yaml:"name"` }
Querier
type Querierfe ¶
type Querierfe struct { Name string `yaml:"name"` Cacheoption string `yaml:"cacheOption"` Config map[string]interface{} `yaml:"config"` }
Querierfe
type Ruler ¶
type Ruler struct { Name string `yaml:"name"` Alertmanagers []string `yaml:"alertManagers"` Config string `yaml:"config"` }
Ruler
type Setup ¶
type Setup struct { Enabled bool `yaml:"enabled"` Name string `yaml:"name"` Namespace string `yaml:"namespace"` }
Setup
type Thanos ¶
type Thanos struct { Name string `yaml:"name"` Namespace string `yaml:"namespace"` Install bool `yaml:"install"` ObjStoreConfig string `yaml:"objStoreConfig"` Querier Querier `yaml:"querier"` Querierfe Querierfe `yaml:"querierFE"` Receiver Receiver `yaml:"receiver"` Compactor Compactor `yaml:"compactor"` Ruler Ruler `yaml:"ruler"` }
Thanos
func (Thanos) GetTypeName ¶
func (t Thanos) GetTypeName()
func (*Thanos) InstallClient ¶
func (*Thanos) PreflightChecks ¶
func (*Thanos) UninstallClient ¶
Click to show internal directories.
Click to hide internal directories.