Documentation ¶
Index ¶
- func CreateClientWithRetries(service string, getClient func() (interface{}, error), retries uint, ...) (interface{}, error)
- type HealthStatus
- type Oauth2ProxyClient
- type OrchestratorClient
- type OrchestratorFailedSeed
- type OrchestratorFailovers
- type OrchestratorMetrics
- type OrcusClient
- type OrcusMetrics
- type XtradbClient
- type XtradbMetrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HealthStatus ¶
type HealthStatus struct { Details struct { Healthy bool IsActiveNode bool AvailableNodes []interface{} } }
HealthStatus represents status related metrics.
type Oauth2ProxyClient ¶
type Oauth2ProxyClient struct {
// contains filtered or unexported fields
}
Oauth2ProxyClient allows you to get oauth2_proxy metrics.
func NewOauth2ProxyClient ¶
func NewOauth2ProxyClient(httpClient *http.Client, apiEndpoint string) (*Oauth2ProxyClient, error)
NewOauth2ProxyClient creates an Oauth2ProxyClient.
func (*Oauth2ProxyClient) GetStatus ¶
func (client *Oauth2ProxyClient) GetStatus() error
GetStatus fetches the oauth2_proxy metrics.
type OrchestratorClient ¶
type OrchestratorClient struct {
// contains filtered or unexported fields
}
OrchestratorClient allows you to get Orchestrator metrics.
func NewOrchestratorClient ¶
func NewOrchestratorClient(httpClient *http.Client, apiEndpoint string) (*OrchestratorClient, error)
NewOrchestratorClient creates an OrchestratorClient.
func (*OrchestratorClient) GetMetrics ¶
func (client *OrchestratorClient) GetMetrics() (*OrchestratorMetrics, error)
GetMetrics fetches Orchestrator metrics.
type OrchestratorFailedSeed ¶
type OrchestratorFailedSeed struct {
SeedID int64
}
OrchestratorFailedSeed represents failed seeds
type OrchestratorFailovers ¶
type OrchestratorFailovers struct {
ID int64
}
OrchestratorFailovers represents failover metrics
type OrchestratorMetrics ¶
type OrchestratorMetrics struct { Status HealthStatus Problems []interface{} LastFailoverID int64 FailedSeeds int }
OrchestratorMetrics represents Orchestrator metrics.
type OrcusClient ¶
type OrcusClient struct {
// contains filtered or unexported fields
}
OrcusClient allows you to get Orcus metrics.
func NewOrcusClient ¶
func NewOrcusClient(httpClient *http.Client, apiEndpoint string) (*OrcusClient, error)
NewOrcusClient creates an OrcusClient.
func (*OrcusClient) GetMetrics ¶
func (client *OrcusClient) GetMetrics() (*OrcusMetrics, error)
GetMetrics fetches Orcus metrics.
type OrcusMetrics ¶
type OrcusMetrics struct { LastSyncDurationSeconds float64 TotalSyncClusters uint64 TotalSyncErrors uint64 TotalSyncCount uint64 }
OrcusMetrics represents Orcus metrics.
type XtradbClient ¶
type XtradbClient struct {
// contains filtered or unexported fields
}
XtradbClient allows you to get Xtradb cluster metrics.
func NewXtradbClient ¶
func NewXtradbClient(myCnf string, sslVerify bool) (*XtradbClient, error)
NewXtradbClient creates an XtradbClient.
func (*XtradbClient) GetMetrics ¶
func (client *XtradbClient) GetMetrics() (*XtradbMetrics, error)
GetMetrics fetches Xtradb cluster metrics.
type XtradbMetrics ¶
XtradbMetrics represents Xtradb cluster metrics.