monitoring

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2020 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GrafanaKind          = "Grafana"
	GrafanaDashboardKind = "GrafanaDashboard"
	GrafanaName          = "stress-grafana"
	DataSourceName       = PrometheusName
)
View Source
const (
	ServiceMonitorKind = "ServiceMonitor"
	PrometheusKind     = "Prometheus"

	PrometheusName     = "stress-prometheus"
	ServiceMonitorName = "stress"
)

Variables

This section is empty.

Functions

func AddToScheme

func AddToScheme(scheme *runtime.Scheme) error

func CreateDashboard

func CreateDashboard(stress *tlp.Stress, client client.Client, log logr.Logger) (reconcile.Result, error)

func CreateDataSource

func CreateDataSource(namespace string, client client.Client, log logr.Logger) (reconcile.Result, error)

func CreateGrafana

func CreateGrafana(namespace string, client client.Client, log logr.Logger) (reconcile.Result, error)

func CreateMetricsService

func CreateMetricsService(stress *api.Stress, client client.Client, log logr.Logger) (reconcile.Result, error)

func CreatePrometheus

func CreatePrometheus(namespace string, client client.Client, log logr.Logger) (reconcile.Result, error)

func CreatePrometheusService

func CreatePrometheusService(namespace string, client client.Client, log logr.Logger) (reconcile.Result, error)

func CreateServiceMonitor

func CreateServiceMonitor(namespace string, client client.Client, log logr.Logger) (reconcile.Result, error)

func GetDashboard

func GetDashboard(stress *tlp.Stress, client client.Client) (*i8ly.GrafanaDashboard, error)

func GetDataSource

func GetDataSource(namespace string, client client.Client) (*i8ly.GrafanaDataSource, error)

func GetGrafana

func GetGrafana(namespace string, client client.Client) (*i8ly.Grafana, error)

func GetMetricsService

func GetMetricsService(stress *api.Stress, client client.Client) (*corev1.Service, error)

func GetMetricsServiceName

func GetMetricsServiceName(stress *api.Stress) string

func GetPrometheus

func GetPrometheus(namespace string, client client.Client) (*prometheus.Prometheus, error)

func GetPrometheusService

func GetPrometheusService(namespace string, client client.Client) (*corev1.Service, error)

func GetServiceMonitor

func GetServiceMonitor(namespace string, client client.Client) (*prometheus.ServiceMonitor, error)

func GrafanaDashboardKindExists

func GrafanaDashboardKindExists() (bool, error)

func GrafanaKindExists

func GrafanaKindExists() (bool, error)

func Init

func Init(dc k8s.DiscoveryClient)

func PrometheusKindExists

func PrometheusKindExists() (bool, error)

func ServiceMonitorKindExists

func ServiceMonitorKindExists() (bool, error)

Types

type GrafanaTemplateParams

type GrafanaTemplateParams struct {
	PrometheusJobName string
	Instance          string
	DashboardName     string
	DataSource        string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL