Documentation ¶
Index ¶
- Constants
- func AddToScheme(scheme *runtime.Scheme) error
- func CreateDashboard(stress *tlp.Stress, client client.Client, log logr.Logger) (reconcile.Result, error)
- func CreateDataSource(namespace string, client client.Client, log logr.Logger) (reconcile.Result, error)
- func CreateGrafana(namespace string, client client.Client, log logr.Logger) (reconcile.Result, error)
- func CreateMetricsService(stress *api.Stress, client client.Client, log logr.Logger) (reconcile.Result, error)
- func CreatePrometheus(namespace string, client client.Client, log logr.Logger) (reconcile.Result, error)
- func CreatePrometheusService(namespace string, client client.Client, log logr.Logger) (reconcile.Result, error)
- func CreateServiceMonitor(namespace string, client client.Client, log logr.Logger) (reconcile.Result, error)
- func GetDashboard(stress *tlp.Stress, client client.Client) (*i8ly.GrafanaDashboard, error)
- func GetDataSource(namespace string, client client.Client) (*i8ly.GrafanaDataSource, error)
- func GetGrafana(namespace string, client client.Client) (*i8ly.Grafana, error)
- func GetMetricsService(stress *api.Stress, client client.Client) (*corev1.Service, error)
- func GetMetricsServiceName(stress *api.Stress) string
- func GetPrometheus(namespace string, client client.Client) (*prometheus.Prometheus, error)
- func GetPrometheusService(namespace string, client client.Client) (*corev1.Service, error)
- func GetServiceMonitor(namespace string, client client.Client) (*prometheus.ServiceMonitor, error)
- func GrafanaDashboardKindExists() (bool, error)
- func GrafanaKindExists() (bool, error)
- func Init(dc k8s.DiscoveryClient)
- func PrometheusKindExists() (bool, error)
- func ServiceMonitorKindExists() (bool, error)
- type GrafanaTemplateParams
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 CreateDashboard ¶
func CreateDataSource ¶
func CreateGrafana ¶
func CreateMetricsService ¶
func CreatePrometheus ¶
func CreatePrometheusService ¶
func CreateServiceMonitor ¶
func GetDashboard ¶
func GetDataSource ¶
func GetMetricsService ¶
func GetMetricsServiceName ¶
func GetPrometheus ¶
func GetPrometheus(namespace string, client client.Client) (*prometheus.Prometheus, error)
func GetPrometheusService ¶
func GetServiceMonitor ¶
func GetServiceMonitor(namespace string, client client.Client) (*prometheus.ServiceMonitor, error)
func GrafanaKindExists ¶
func Init ¶
func Init(dc k8s.DiscoveryClient)
func PrometheusKindExists ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.