Documentation ¶
Index ¶
- Variables
- func WithHistogramName(name string) grpcprometheus.HistogramOption
- type ChaosControllerManagerMetricsCollector
- type ChaosDaemonMetricsCollector
- func (collector *ChaosDaemonMetricsCollector) Collect(ch chan<- prometheus.Metric)
- func (collector *ChaosDaemonMetricsCollector) Describe(ch chan<- *prometheus.Desc)
- func (collector *ChaosDaemonMetricsCollector) InjectCrClient(client crclients.ContainerRuntimeInfoClient) *ChaosDaemonMetricsCollector
- type ChaosDashboardMetricsCollector
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultChaosDaemonMetricsCollector is the default metrics collector for chaos daemon DefaultChaosDaemonMetricsCollector = NewChaosDaemonMetricsCollector(log.L().WithName("chaos-daemon").WithName("metrics")) // ChaosDaemonGrpcServerBuckets is the buckets for gRPC server handling histogram metrics ChaosDaemonGrpcServerBuckets = []float64{0.001, 0.01, 0.1, 0.3, 0.6, 1, 3, 6, 10} )
Functions ¶
func WithHistogramName ¶
func WithHistogramName(name string) grpcprometheus.HistogramOption
Types ¶
type ChaosControllerManagerMetricsCollector ¶
type ChaosControllerManagerMetricsCollector struct { SidecarTemplates prometheus.Gauge ConfigTemplates *prometheus.GaugeVec InjectionConfigs *prometheus.GaugeVec TemplateNotExist *prometheus.CounterVec TemplateLoadError prometheus.Counter ConfigNameDuplicate *prometheus.CounterVec InjectRequired *prometheus.CounterVec Injections *prometheus.CounterVec EmittedEvents *prometheus.CounterVec // contains filtered or unexported fields }
ChaosControllerManagerMetricsCollector implements prometheus.Collector interface
func NewChaosControllerManagerMetricsCollector ¶
func NewChaosControllerManagerMetricsCollector(manager ctrl.Manager, registerer *prometheus.Registry, logger logr.Logger) *ChaosControllerManagerMetricsCollector
NewChaosControllerManagerMetricsCollector initializes metrics and collector
func (*ChaosControllerManagerMetricsCollector) Collect ¶
func (collector *ChaosControllerManagerMetricsCollector) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface.
func (*ChaosControllerManagerMetricsCollector) Describe ¶
func (collector *ChaosControllerManagerMetricsCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements the prometheus.Collector interface.
type ChaosDaemonMetricsCollector ¶
type ChaosDaemonMetricsCollector struct {
// contains filtered or unexported fields
}
func NewChaosDaemonMetricsCollector ¶
func NewChaosDaemonMetricsCollector(logger logr.Logger) *ChaosDaemonMetricsCollector
NewChaosDaemonMetricsCollector initializes metrics for each chaos daemon
func (*ChaosDaemonMetricsCollector) Collect ¶
func (collector *ChaosDaemonMetricsCollector) Collect(ch chan<- prometheus.Metric)
func (*ChaosDaemonMetricsCollector) Describe ¶
func (collector *ChaosDaemonMetricsCollector) Describe(ch chan<- *prometheus.Desc)
func (*ChaosDaemonMetricsCollector) InjectCrClient ¶
func (collector *ChaosDaemonMetricsCollector) InjectCrClient(client crclients.ContainerRuntimeInfoClient) *ChaosDaemonMetricsCollector
type ChaosDashboardMetricsCollector ¶
type ChaosDashboardMetricsCollector struct {
// contains filtered or unexported fields
}
ChaosDashboardMetricsCollector implements prometheus.Collector interface
func NewChaosDashboardMetricsCollector ¶
func NewChaosDashboardMetricsCollector(engine *gin.Engine, registry *prometheus.Registry) *ChaosDashboardMetricsCollector
NewChaosDashboardMetricsCollector initializes metrics and collector
func (*ChaosDashboardMetricsCollector) Collect ¶
func (collector *ChaosDashboardMetricsCollector) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface.
func (*ChaosDashboardMetricsCollector) Describe ¶
func (collector *ChaosDashboardMetricsCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements the prometheus.Collector interface.
Click to show internal directories.
Click to hide internal directories.