Documentation
¶
Overview ¶
Package metrics provides metrics collection and monitoring functionality for Clowder applications
Index ¶
- Variables
- func GetMetrics(c *providers.Provider) (providers.ClowderProvider, error)
- func GetPrometheusGatewayImage(env *crd.ClowdEnvironment) string
- func NewAppInterfaceMetrics(p *p.Provider) (p.ClowderProvider, error)
- func NewMetricsProvider(p *providers.Provider) (providers.ClowderProvider, error)
- func NewNoneMetricsProvider(p *providers.Provider) (providers.ClowderProvider, error)
Constants ¶
This section is empty.
Variables ¶
var DefaultImagePrometheusGateway = "quay.io/prometheus/pushgateway:v1.11.1"
DefaultImagePrometheusGateway defines the default Prometheus gateway image
var MetricsServiceMonitor = rc.NewMultiResourceIdent(ProvName, "metrics-service-monitor", &prom.ServiceMonitor{})
MetricsServiceMonitor represents the resource identifier for metrics service monitors
var PrometheusGatewayDeployment = rc.NewSingleResourceIdent(ProvName, "prometheus_gateway_deployment", &apps.Deployment{})
PrometheusGatewayDeployment represents the resource identifier for Prometheus gateway deployments
var PrometheusGatewayService = rc.NewSingleResourceIdent(ProvName, "prometheus_gateway_service", &core.Service{})
PrometheusGatewayService represents the resource identifier for Prometheus gateway services
var PrometheusGatewayServiceMonitor = rc.NewSingleResourceIdent(ProvName, "prometheus_gateway_service_monitor", &prom.ServiceMonitor{})
PrometheusGatewayServiceMonitor represents the resource identifier for Prometheus gateway service monitors
var PrometheusInstance = rc.NewSingleResourceIdent(ProvName, "prometheus_instance", &prom.Prometheus{})
PrometheusInstance represents the resource identifier for Prometheus instances
var PrometheusRole = rc.NewSingleResourceIdent(ProvName, "prometheus_role", &rbac.Role{})
PrometheusRole represents the resource identifier for Prometheus roles
var PrometheusRoleBinding = rc.NewSingleResourceIdent(ProvName, "prometheus_role_binding", &rbac.RoleBinding{})
PrometheusRoleBinding represents the resource identifier for Prometheus role bindings
var PrometheusServiceAccount = rc.NewSingleResourceIdent(ProvName, "prometheus_service_account", &core.ServiceAccount{})
PrometheusServiceAccount represents the resource identifier for Prometheus service accounts
var PrometheusSubscription = rc.NewSingleResourceIdent(ProvName, "prometheus_subscription", &sub.Subscription{})
PrometheusSubscription represents the resource identifier for Prometheus subscriptions
var ProvName = "metrics"
ProvName sets the provider name identifier
Functions ¶
func GetMetrics ¶
func GetMetrics(c *providers.Provider) (providers.ClowderProvider, error)
GetMetrics returns the correct metrics provider.
func GetPrometheusGatewayImage ¶ added in v0.101.0
func GetPrometheusGatewayImage(env *crd.ClowdEnvironment) string
GetPrometheusGatewayImage returns the Prometheus gateway image for the environment
func NewAppInterfaceMetrics ¶
func NewAppInterfaceMetrics(p *p.Provider) (p.ClowderProvider, error)
NewAppInterfaceMetrics creates a new app-interface metrics provider instance
func NewMetricsProvider ¶
func NewMetricsProvider(p *providers.Provider) (providers.ClowderProvider, error)
NewMetricsProvider creates a new metrics provider instance
func NewNoneMetricsProvider ¶
func NewNoneMetricsProvider(p *providers.Provider) (providers.ClowderProvider, error)
NewNoneMetricsProvider creates a new metrics provider that does nothing
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package v1alpha1 contains the group version info +kubebuilder:object:generate=true +groupName=operators.coreos.com
|
Package v1alpha1 contains the group version info +kubebuilder:object:generate=true +groupName=operators.coreos.com |