Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(at api.AgentType, k8sClient kubernetes.Interface, promClient prom.MonitoringV1Interface) api.Agent
Types ¶
type PrometheusOperator ¶
type PrometheusOperator struct {
// contains filtered or unexported fields
}
PrometheusOperator creates `ServiceMonitor` so that Prometheus operator can generate necessary config for Prometheus.
func (*PrometheusOperator) CreateOrUpdate ¶
func (agent *PrometheusOperator) CreateOrUpdate(sp api.StatsAccessor, new *api.AgentSpec) (kutil.VerbType, error)
func (*PrometheusOperator) Delete ¶
func (agent *PrometheusOperator) Delete(sp api.StatsAccessor) (kutil.VerbType, error)
func (*PrometheusOperator) GetType ¶
func (agent *PrometheusOperator) GetType() api.AgentType
Click to show internal directories.
Click to hide internal directories.